private void CallInterfaceVMethod_WithCast <T>(ContainerBase <T> c, int count) { IContainer <T> ic; T o; for (int i = 0; i < count; i += 10) { ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; ic = (IContainer <T>)c; o = ic.Value; } }
private void CallClassGVMethod2 <T, T1, T2>(ContainerBase <T> c, int count) { for (int i = 0; i < count; i += 10) { c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); c.GenericMethod2 <T1, T2>(); } }
private void CastClassGVMethod2 <T, T1, T2>(ContainerBase <T> c, int count) { Action a; for (int i = 0; i < count; i += 10) { a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; a = c.GenericMethod2 <T1, T2>; } }
private void CallClassVMethod_WithBoxing <T>(ContainerBase <T> c, int count) { T o; for (int i = 0; i < count; i += 10) { o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; o = (T)c.BoxedValue; } }
private void CastClassVMethod <T>(ContainerBase <T> c, int count) { Func <T> f; for (int i = 0; i < count; i += 10) { f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; f = c.GetValue; } }
private void CallClassVMethod <T>(ContainerBase <T> c, int count) { T o; for (int i = 0; i < count; i += 10) { o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; o = c.Value; } }