Showing results for 2013 - Developer Support

May 7, 2013
0
0

Immutable Object Graph updates

Andrew Arnott
Andrew Arnott

In my last post, I introduced a T4 template that constructs efficient and quite capable immutable objects based on the simplest mutable type definition. I also mentioned that the published sample is (necessarily, ala T4 style) open source and hosted online. Two outsiders have already submitted pull requests that have been accepted. Some thoughtful ...

andarno.NETImmutability
Jan 8, 2013
0
0

Simple immutable objects

Andrew Arnott
Andrew Arnott

We’re all familiar with immutable collections now. But immutability is only as immutable as it is deep. And an immutable collection of mutable objects may not provide the depth you’re looking for. So how can one create an immutable object? Suppose you would define the mutable version like this: An immutable version might be defined ...

andarno.NETImmutability
Jan 7, 2013
0
0

Immutable collection algorithmic complexity

Andrew Arnott
Andrew Arnott

I received some feedback from my recent BCL blog post on the prerelease of the immutable collections that my algorithm complexity table left a few important entries out. Here is the table again, with more data filled in (particularly around list indexer lookup and enumeration): A noteworthy trait to call out here is that where a List<T>...

andarno.NETImmutability