Hi,
Can generics be used to call a static method of a class? The below
example gives an error in my generictest class. Anybody know why?
class foo
{
static public void Test() { Console.WriteLi ne("foo.Test"); }
}
class GenericTest<T>
{
public void CallTest() { T.Test();}
}
Can generics be used to call a static method of a class? The below
example gives an error in my generictest class. Anybody know why?
class foo
{
static public void Test() { Console.WriteLi ne("foo.Test"); }
}
class GenericTest<T>
{
public void CallTest() { T.Test();}
}
Comment