Ejemplo n.º 1
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.º 2
0
        public static Func0 CreateStandardConstructor(ConstructorInfo constructor)
        {
            if (constructor == null)
            {
                throw new ArgumentNullException(nameof(constructor));
            }

            return(m_Cache1b.GetOrAdd(constructor, x => InternalAccelerator.CreateStandardConstructor(constructor)));
        }