I was learning C# and found that there is some type of value defined by
var json = new {name="App", age=20};
Although this seems to be similar to the JSON type. But when I tried to use the GetType method, I got <>f__AnonymousType0`2[System.String,System.Int32]
Can anyone help me in this please?
In case you want the full code
using System;
public class Program
{
public static void Main()
{
var c = new { name="App", age=22 };
Console.WriteLine(c.GetType());
Console.WriteLine(c);;
}
}