How many anonymous types?
Chapter 2: Core foundations: building on C# 1: 2.4.2
Created: 28/01/2008
Last updated: 28/01/2008
I mention in section 2.4.2 (and later in the book, of course) that if you use two anonymous type creation expressions in a single assembly, and those expressions have the same property types and names in the same order, that you get a single type.
That's not quite true, although I doubt if you'd ever notice it. Strictly speaking, this is done on a per-netmodule basis. What's a netmodule? It's like a mini-assembly - you can build an assembly from multiple netmodule files.
I'm not aware of it being commonly used, but there we go...