Uh oh!
There was an error while loading. Please reload this page.
Immutable dynamic object - #4
Conversation
WhiteBlackGoose
commented
Aug 29, 2021
There should also be added CSharpTests.csproj to testing in CI |
Instead of relfection and SRTP, we constrain the inherited type to new() and after creation mutate its private field. No inline members needed, now all logic reside in assembly.
Questions to resolve:
|
kMutagene
commented
Aug 30, 2021
Agreed on add/remove, maybe a bit more verbose
Here i would go for |
kMutagene
left a comment
There was a problem hiding this comment.
Awesome work. My comments are really minor ones, good stuff 💯
| # Visual Studio Version 16 | ||
| VisualStudioVersion = 16.0.31515.178 | ||
| # Visual Studio Version 17 | ||
| VisualStudioVersion = 17.0.31521.260 |
There was a problem hiding this comment.
not sure if this has any effect, but this is from VS Preview right?
There was a problem hiding this comment.
Yeah. I will revert it once we understand that everything else is good enough
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Usage:
F#
Simple
(
obj1is of typeImmutableDynamicObj)With inheritance
...
(
obj1is of typeQuack)C#
Simple
(
obj1is of typeImmutableDynamicObj)With inheritance
...
(
obj1is of typeMyDynamicObject)