private void Test()
        {
            MyInnerClass2 myInnerClass2;
            MyInnerClass  myInnerClass;

            (MyInnerClass2 Item, MyInnerClass myInnerClass)test2 = (TestNew(), TestNew2());
            var innerClass2 = test2.myInnerClass;

            var sharedProp = new Shared1().SharedProp1;

            sharedProp.t1_renamed = 1;
            Console.WriteLine(sharedProp.s1 + sharedProp.t1_renamed);

            (A, List <A> tList, string s)linkedMethodFromGenericClass = new SharedGeneric <A>().LinkedMethodFromGenericClass((tList: null, (1, s: "")));

            var first = linkedMethodFromGenericClass.tList.First();

            (string, List <string> tList, string s)method = new SharedGeneric <A>().NormalMethodFromGenericClass((tList: null, (1, s: "")));


            (A, List <A> tList, string s)linkedMethod = new Shared1().LinkedMethod <A>((tList: null, 1, s: ""));
            var test1 = new PreprocessorTest().Test1("");

            var test1S = test1.s;
        }
예제 #2
0
        public (int myName1, int, int) MethodReturnType2()
        {
            var sharedProp = new Shared1().SharedProp1;

            Console.WriteLine(sharedProp.s1 + sharedProp.t1_renamed);

            (A, List <A> tList, string s)linkedMethod = new Shared1().LinkedMethod <A>((tList: null, 1, s: ""));

            (A, List <A> tList, string s)linkedMethodFromGenericClass = new SharedGeneric <A>().LinkedMethodFromGenericClass((tList: null, (1, s: "")));
            (string, List <string> tList, string s)method             = new SharedGeneric <A>().NormalMethodFromGenericClass((tList: null, (1, s: "")));

            var myName   = 1;
            var localVar = (testMe : myName, 2, 3);

            return(testMe : myName, 2, 3);
        }