C# how to create an array of objects? [closed]

try this

object[] objs = new object[] {obj1, obj2};

for more details about array http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx

You can also find more on http://www.dotnetperls.com/object-array

Leave a Comment