Browse by Tags

Tagged Content List
  • Blog Post: Immutability in C# Part Two: A Simple Immutable Stack

    Let’s start with something simple: an immutable stack. Now, immediately I hear the objection: a stack is by its very nature something that changes. A stack is an abstract data type with the interface void Push(T t); T Pop(); bool IsEmpty { get; } You push stuff onto it, you pop stuff off of...
  • Blog Post: Immutability in C# Part One: Kinds of Immutability

    I said in an earlier post that I believe that immutable objects are the way of the future in C#. I stand by that statement while at the same time noting that it is at this point sufficiently vague as to be practically meaningless! “Immutable” means different things to different people; different kinds...
  • Blog Post: News flash: Instances of anonymous types will be immutable

    I've been meaning to write a blog post about a recent design change that we've made here on the C# team. As you may have gathered from my previous posts, we are introducing anonymous tuple types in C# 3.0. We've recently decided to make instances of those tuple types immutable; once you construct a particular...
Page 2 of 2 (28 items) 12