Skip to content

Immutable Types for .NET

Check out this post from Microsoft’s Joe Duffy on immutable types for. NET. Well, he actually calls it "Immutable types for C#," but he does it with custom attributes and an FxCop rule, this is far as I can see it will work with any .NET language.

Moreover, because he does it with an FxCop rule, it’s effectively type safe, so long as you run FxCop in your automated daily build.

And you do run FxCop in your automated daily build, right?

Update: Eric Lippert starts a series on immutability in C#.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 1846 access attempts in the last 7 days.

Close