C# and arrays of anonymous objects
.net, anonymous-types, arrays, asp.net, c#
Solution
That's not a multidimensional array. That's an array of objects which have been created using object initializers with anonymous types.
Problem
What does such an expression mean? ``` obj.DataSource = new[] { new {Text = "Silverlight", Count = 10, Link="/Tags/Silverlight" }, new {Text = "IIS 7", Count = 11, Link="http://iis.net" }, new {Text = "IE 8", Count = 12, Link="/Tags/IE8" }, new {Text = "C#", Count = 13, Link="/Tags/C#" }, new {Text = "Azure", Count = 13, Link="?Tag=Azure" } }; ``` Especially these lines: new {Text = "IIS 7"... } How can I create an array like this manually to suit this DataSource.