Код: Выделить всё
public class GenericClass
{
public Type getMyType()
{
//How do I return the type of T?
}
}
Подробнее здесь: https://stackoverflow.com/questions/340 ... at-runtime
Код: Выделить всё
public class GenericClass
{
public Type getMyType()
{
//How do I return the type of T?
}
}