This is a question about the structure of C#.
I would like to know why an Anonymous Types in C#
var matrices = new[]
{
new {nombre="Madelson", Edad="20"},
new {nombre = "Mike" , Edad = "30"},
new {nombre = "Ana", Edad ="15"}
};
What I have tried:
They get print, with brakets:
{ nombre = Madelson, Edad = 20 }
{ nombre = Mike, Edad = 30 }
{ nombre = Ana, Edad = 15 }
Do you guys know why?
Thanks in advance :)