A
Andrew
Hello All!
I'm trying to compile the following code in VS2005 Beta
class A
{
public static void SA() { }
}
class B<T> where T : A
{
public static void SB()
{
T.SA();
}
}
And I'm getting the following error
Error 7 'T' is a 'type parameter', which is not valid in the given
context
My question is: Is it a bug or feature?
Thanks in advance
I'm trying to compile the following code in VS2005 Beta
class A
{
public static void SA() { }
}
class B<T> where T : A
{
public static void SB()
{
T.SA();
}
}
And I'm getting the following error
Error 7 'T' is a 'type parameter', which is not valid in the given
context
My question is: Is it a bug or feature?
Thanks in advance