class Base
{
public class T
{
publicstatic void Bar(){}
}
}
class Derived<T> : Base
{
static void Foo()
{
T.Bar(); // error CS0119: 'T' is a 'type parameter', which is not valid in the given context
}
}
Description
class Base
{
public class T
{
publicstatic void Bar(){}
}
}
class Derived<T> : Base
{
static void Foo()
{
T.Bar(); // error CS0119: 'T' is a 'type parameter', which is not valid in the given context
}
}