-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistent story around immutability/mutability #11
Comments
List should not be supported as it's mutable. Use IReadOnlyList instead. |
I just forked the repo to look at this. It is now more graceful as it throws I agree with the point about mutability but that's not checked everywhere. Eg this still works: public sealed class UserScore
{
public UserScore(string name, int score)
{
Name = name;
Score = score;
}
public string Name { get; set; }
public int Score { get; set; }
} So it's a bit inconsistent isn't it? |
Yes that is inconsistent. Will have a think. I like immutability and it's important to make it possible, but maybe Dasher shouldn't force it on users. Will have a think. Just pushed 0.3.0 to NuGet. |
The following code throws a
System.Security.VerificationException : Operation could destabilize the runtime.
:I'll take a look but you might get there quicker :-)
The text was updated successfully, but these errors were encountered: