Код: Выделить всё
class Program
{
static void Main(string[] args)
{
}
public class ClassA where BT: ClassB
{
BT btvar;
}
public class ClassB where AT: ClassA
{
AT atvar;
}
}
Подробнее здесь: https://stackoverflow.com/questions/950 ... ic-classes
Код: Выделить всё
class Program
{
static void Main(string[] args)
{
}
public class ClassA where BT: ClassB
{
BT btvar;
}
public class ClassB where AT: ClassA
{
AT atvar;
}
}