How can I get this to work? var x = error type or namespace name expected.
class Program
{
static void Main(string[] args)
{
Person j = new John();
var t = j.GetType();
var x = new List<t>();
}
}
class John : Person
{
}
class Person
{
public string Name;
}
IEnumerable
).a
in my name :-)