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 InvocationDelegate CreateInvocationDelegate(ConstructorInfo constructor)
        {
            if (constructor == null)
            {
                throw new ArgumentNullException(nameof(constructor));
            }

            return(m_Cache4a.GetOrAdd(constructor, x => InternalAccelerator.CreateInvocationDelegate(constructor)));
        }