using System;
public class Starter {
public static void Main() {
MyClass<int> obj = new MyClass<int>();
obj.MethodA();
}
}
class MyClass<T> {
public T MethodA() {
T var = default(T);
Console.WriteLine(this.GetType().ToString());
return var;
}
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok