示例#1
0
        private static void TestInvokingAmbMethodDependingOnClassGeneric()
        {
            var theClass = new ClassUsingGenericsInMethods <bool>();

            theClass.InvokingAmbMethodDependingOnClassGeneric(true);
            Assert("GenericMethodT1GenericMethodT2", BaseTest.Output);
        }
示例#2
0
        private static void TestPassOfGenericsToGenericMethod()
        {
            var theClass = new ClassUsingGenericsInMethods <int>();

            Assert(true, theClass.UseClassGenericAsMethodGeneric());
            Assert(true, theClass.UseMethodGenericAsMethodGeneric(3));
        }
示例#3
0
        private static void TestPassofGenericsToGenericMethodThroughLambda()
        {
            var theClass = new ClassUsingGenericsInMethods <string>();

            Assert(true, theClass.UseClassGenericInLambda("correct", "incorrect"));
        }