C# and anonymous types

One cool feature of C# 3.0 is support of anonymous types. Let's suppose we have to create some data structure and we need this structure in one place in one method. This far we had to create a new private class or structure. With anonymous types we don't have to define new type - we can create it on the run.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

No Comments