L
Larry R
I am trying to determine the Type of the call to a Generic method:
public static void Main()
{
Check<string>();
}
public static void Check<T>()
{
Type n = T.GetType();
Console.WriteLine(n.Name );
}
Is there a way to do this?
public static void Main()
{
Check<string>();
}
public static void Check<T>()
{
Type n = T.GetType();
Console.WriteLine(n.Name );
}
Is there a way to do this?