c# Programming Glossary: immutability
“const correctness” in C# http://stackoverflow.com/questions/114149/const-correctness-in-c-sharp I can use in C# that has the same ends I'm aware of immutability but that doesn't really carry over to container objects to name..
Multi-key dictionary in c#? http://stackoverflow.com/questions/1171812/multi-key-dictionary-in-c item1 T2 item2 return new Tuple T1 T2 item1 item2 You get immutability .GetHashcode and .Equals for free which while you're waiting..
Initializing C# auto-properties http://stackoverflow.com/questions/169220/initializing-c-sharp-auto-properties will be fixed in C# 5 which I strongly hope will address immutability concerns. I don't think either of them are scheduled for C#..
Cannot modify the return value error c# http://stackoverflow.com/questions/1747654/cannot-modify-the-return-value-error-c-sharp type for the intermediate expression. c# variables struct immutability share improve this question This is because Point is a value..
Should IEquatable<T>, IComparable<T> be implemented on non-sealed classes? http://stackoverflow.com/questions/1868316/should-iequatablet-icomparablet-be-implemented-on-non-sealed-classes T are designed appropriately for inheritance. c# immutability icomparable iequatable sealed share improve this question..
Why .NET String is immutable? [duplicate] http://stackoverflow.com/questions/2365272/why-net-string-is-immutable of StringBuilder class as mutable c# .net string immutability share improve this question Instances of immutable types.. This means that abc ab c . While this doesn't require immutability the fact that a reference to such a string will always equal.. equal abc throughout its lifetime which does require immutability makes uses as keys where maintaining equality to previous values..
Immutable object pattern in C# - what do you think? http://stackoverflow.com/questions/263585/immutable-object-pattern-in-c-sharp-what-do-you-think on this topic. c# functional programming design patterns immutability share improve this question For info the second approach.. question For info the second approach is called popsicle immutability . Eric Lippert has a series of blog entries on immutability.. . Eric Lippert has a series of blog entries on immutability starting here . I'm still getting to grips with the CTP C# 4.0..
Efficient, Immutable, Extensible Collections for .NET [duplicate] http://stackoverflow.com/questions/3485262/efficient-immutable-extensible-collections-for-net rolled into the BCL soon .NET immutable collections c# immutability bcl share improve this question You might want to take a..
How do I create an immutable Class? http://stackoverflow.com/questions/352471/how-do-i-create-an-immutable-class has to follow to make a class immutable Thanks. c# .net immutability share improve this question I think you're on the right..
Why are C# structs immutable? http://stackoverflow.com/questions/3751911/why-are-c-sharp-structs-immutable and deallocated for mutable and immutable objects c# .net immutability share improve this question If this subject interests you.. at http blogs.msdn.com b ericlippert archive tags immutability I was just curious to know why structs strings etc are immutable..
Why are mutable structs evil? http://stackoverflow.com/questions/441309/why-are-mutable-structs-evil the actual problem with mutability and structs c# struct immutability mutable share improve this question Structs are value types..
Calling virtual method in base class constructor http://stackoverflow.com/questions/448258/calling-virtual-method-in-base-class-constructor . For instance the initialize later option prohibits immutability. If you do use a virtual method in the constructor document..
Immutability of structs [duplicate] http://stackoverflow.com/questions/608542/immutability-of-structs and cons of not following this guideline c# .net struct immutability share improve this question Structs should represent values..
If strings are immutable in .NET, then why does Substring take O(n) time? http://stackoverflow.com/questions/6742923/if-strings-are-immutable-in-net-then-why-does-substring-take-on-time blogs.msdn.com b ericlippert archive 2011 07 19 strings immutability and persistence.aspx The short answer is O n is O 1 if n does..
|