public static void PublicFieldSet(Int32 numberIterations) { TestProp t = new TestProp(); for (int i = 0; i < numberIterations; ++i) { t.i = i; } }
public static void VirtualPropertySet(Int32 numberIterations) { TestProp t = new TestProp(); for (int i = 0; i < numberIterations; ++i) { t.k = i; } }
public static void PropertyGet(Int32 numberIterations) { TestProp t = new TestProp(); for (int i = 0; i < numberIterations; ++i) { int k = t.j; } }