Code Snippet
class A
{
}
abstract class A<T, U>: A
{
}
class A<T, U, V>: A
{
}
{
}
abstract class A<T, U>: A
{
}
class A<T, U, V>: A
{
}
static A GetA(Type t, Type u, Type v)
{
Type a = typeof(A<>).MakeGenericType(t, u, v);
return (A)Activator.CreateInstance(a);
}
That func doesn't compile with error "The non-generic type 'Karioth.Test.A' cannot be used with type arguments" at marked point.
How can I create an instance of A<T,U,V>
Thanks.