Пример #1
0
        #pragma warning restore 649
        #pragma warning restore 0414

    public static void Test()
    {
        object x1 = new RecursiveClass1 <int>();
        object x2 = new RecursiveStruct1 <int>(3);
        object x3 = new NonRecursiveClass1 <int>();
        object x4 = new NonRecursiveStruct1 <int>(3);
        object x5 = new ExpansiveClass1 <int>();
        object x6 = new ExpansiveStruct1 <int>(3);

        object y1 = new RecursiveClass1 <string>();
        object y2 = new RecursiveStruct1 <string>(3);
        object y3 = new NonRecursiveClass1 <string>();
        object y4 = new NonRecursiveStruct1 <string>(3);
        object y5 = new ExpansiveClass1 <string>();
        object y6 = new ExpansiveStruct1 <string>(3);
    }
Пример #2
0
 public ExpansiveStruct1(int x)
 {
     f1 = null;
 }