Exemple #1
0
        public static void Run()
        {
            if (Gen2 <string> .GetFromClassParam() != "Hello")
            {
                throw new Exception();
            }

            if (Gen2 <string> .GetFromMethodParam() != "World")
            {
                throw new Exception();
            }
        }
Exemple #2
0
        public static void Run()
        {
            if (Gen2 <string> .GetFromClassParam() != "Hello")
            {
                throw new Exception();
            }

            if (Gen2 <string> .GetFromMethodParam() != "World")
            {
                throw new Exception();
            }

            if (NonGeneric.Get <object>(new object[0]) != "Hi there")
            {
                throw new Exception();
            }
        }