Is there some combination of syntax that'll let me declare a variable of type B as I'd like to do it? It's a bit clunky having to say that I want int twice.Code:class A<Ta>
{
public A() { }
}
class B<TA, Ta>
where TA : A<Ta>
{
public B() { }
}
class Program
{
static void Main(string[] args)
{
B<A<int>, int> var = new B<A<int>, int>();
//how I'd like to do it
//B<A<int> > = new B<A<int> >();
}
}