How can i insert a new object to anonymous array?
var v = new[]
{
new {Name = "a", Surname = "b", Age = 1},
new {Name = "b", Surname = "c", Age = 2}
};
I know first of all we set the array's limit(size).
I convert it to List. To insert a new object.
v.ToList().Add(new { Name = "c", Surname = "d", Age = 3 });
But still i have 2 elements in v variable. Where has the third element gone?
But i can't assign to another List variable.
List newV = v.ToList();