Esempio n. 1
0
        public static void PublicFieldSet(Int32 numberIterations)
        {
            TestProp t = new TestProp();

            for (int i = 0; i < numberIterations; ++i)
            {
                t.i = i;
            }
        }
Esempio n. 2
0
        public static void VirtualPropertySet(Int32 numberIterations)
        {
            TestProp t = new TestProp();

            for (int i = 0; i < numberIterations; ++i)
            {
                t.k = i;
            }
        }
Esempio n. 3
0
        public static void PropertyGet(Int32 numberIterations)
        {
            TestProp t = new TestProp();

            for (int i = 0; i < numberIterations; ++i)
            {
                int k = t.j;
            }
        }