예제 #1
0
        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;
            }
        }
예제 #2
0
 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>();
     }
 }
예제 #3
0
        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>;
            }
        }
예제 #4
0
        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;
            }
        }
예제 #5
0
        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;
            }
        }
예제 #6
0
        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;
            }
        }