I don't understand the difference between Anonymous Class
and object Class
if i have an anonymous type object :
var x = new []
{
new {name = "x", phone = 125},
new {name = "f", phone = 859},
new {name="s",phone=584}
};
i can see how i can iterate through it and get values of the properties doing this x.name ...
but if i change this to an object
var x = new Object[]
{
new {name = "x", phone = 125},
new {name = "f", phone = 859},
new {name="s",phone=584}
};
then if i loop through it i will not be able to access the properties??
i have tried different ways to be able to get the values from this object and i failed, may be i missed something? and what is the point of generating object array
and how can i consume it??
and i know that i can't do something like this : new Object[] {name = 'x' ...