Friday, April 8, 2011

How to make an anonymous type list in C#?


        var aList = new[] {
                new {Value= 0, Description= " aList  0"}, 
                new {Value= 1, Description= " aList  1"}, 
                new {Value= 2, Description= " aList  2"}, 
                new {Value= 3, Description= " aList  3"}, 
            };

No comments:

Post a Comment