Example #1
0
        private static void TestGenericProperty()
        {
            var theClass = new ClassWithGenericElements <int>();

            Assert(0, theClass.Property);

            theClass.Property = 43;
            Assert(43, theClass.Property);
        }
Example #2
0
        private static void TestGenericVariable()
        {
            var theClass = new ClassWithGenericElements <int>();

            Assert(0, theClass.Variable);

            theClass.Variable = 43;
            Assert(43, theClass.Variable);
        }