G
Guest
Can anyone tell me what is wrong with this:
namespace Test
{
public class A
{}
public class B : A
{}
public class G<T> where T : A
{}
public class F : G<B>
{}
public class Test
{
private G<A> a = new F();
private G<A> b = new G<B>();
}
}
To me that should be OK but I think I've missed something.
Thanks in Advance
Chris
namespace Test
{
public class A
{}
public class B : A
{}
public class G<T> where T : A
{}
public class F : G<B>
{}
public class Test
{
private G<A> a = new F();
private G<A> b = new G<B>();
}
}
To me that should be OK but I think I've missed something.
Thanks in Advance
Chris