Ejemplo n.º 1
0
        public static InvocationDelegate CreateInvocationDelegate(MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            return(m_Cache4b.GetOrAdd(method, x => InternalAccelerator.CreateInvocationDelegate(method)));
        }
Ejemplo n.º 2
0
        public static Func2 CreateFunction2(MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            return(m_Cache3b.GetOrAdd(method, x => InternalAccelerator.CreateFunction2(method)));
        }
Ejemplo n.º 3
0
        public static InvocationDelegate CreateInvocationDelegate(ConstructorInfo constructor)
        {
            if (constructor == null)
            {
                throw new ArgumentNullException(nameof(constructor));
            }

            return(m_Cache4a.GetOrAdd(constructor, x => InternalAccelerator.CreateInvocationDelegate(constructor)));
        }
Ejemplo n.º 4
0
        public static Action1 CreateAction1(MethodInfo method)
        {
            if (method == null)
            {
                throw new ArgumentNullException(nameof(method));
            }

            return(m_Cache2a.GetOrAdd(method, x => InternalAccelerator.CreateAction1(method)));
        }
Ejemplo n.º 5
0
        public static Func0 CreateStandardConstructor(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException(nameof(type));
            }

            return(m_Cache1a.GetOrAdd(type, x => InternalAccelerator.CreateStandardConstructor(type)));
        }
Ejemplo n.º 6
0
        public static Func0 CreateStandardConstructor(ConstructorInfo constructor)
        {
            if (constructor == null)
            {
                throw new ArgumentNullException(nameof(constructor));
            }

            return(m_Cache1b.GetOrAdd(constructor, x => InternalAccelerator.CreateStandardConstructor(constructor)));
        }
Ejemplo n.º 7
0
        public static Action2 CreateInstanceSetter(FieldInfo field)
        {
            if (field == null)
            {
                throw new ArgumentNullException(nameof(field));
            }

            return(m_Cache6b.GetOrAdd(field, x => InternalAccelerator.CreateInstanceSetter(field)));
        }
Ejemplo n.º 8
0
        public static Func0 CreateStaticGetter(FieldInfo field)
        {
            if (field == null)
            {
                throw new ArgumentNullException(nameof(field));
            }

            return(m_Cache5a.GetOrAdd(field, x => InternalAccelerator.CreateStaticGetter(field)));
        }