Esempio n. 1
0
        public ConstructorMap(ConstructorInfo ctor, IEnumerable <ConstructorParameterMap> ctorParams)
        {
            Ctor       = ctor;
            CtorParams = ctorParams;

            _runtimeCtor = DelegateFactory.CreateCtor(ctor, CtorParams);
        }
Esempio n. 2
0
 public static object CreateObject(Type type)
 {
     return(type.IsArray ? CreateArray(type.GetElementType(), 0) : DelegateFactory.CreateCtor(type)());
 }
Esempio n. 3
0
 public static object CreateObject(Type type)
 {
     return(DelegateFactory.CreateCtor(type)());
 }