Пример #1
0
        public static ZLConstructorInfo[] GetZConstructors(Type markType, Type sharpType, bool isStatic, ZLClassInfo zclass)
        {
            List <ZLConstructorInfo> list = new List <ZLConstructorInfo>();

            if (!isStatic)
            {
                ConstructorInfo[] constructors = sharpType.GetConstructors();
                foreach (ConstructorInfo constructor in constructors)
                {
                    ZLConstructorInfo zconstructor = new ZLConstructorInfo(constructor, zclass);
                    list.Add(zconstructor);
                }
            }
            return(list.ToArray());
        }
Пример #2
0
        public static ZLConstructorDesc CreateZConstructorDesc(ConstructorInfo ci, ZLConstructorInfo zlc, ZLClassInfo zclass)
        {
            ZLBracketDesc zbracket = new ZLBracketDesc();
            //List<ZArgDefNormalDesc> args = new List<ZArgDefNormalDesc>();
            int index = 0;

            foreach (ParameterInfo param in ci.GetParameters())
            {
                ZLParamInfo arg = new ZLParamInfo(param, zlc, index);// , false);
                zbracket.Add(arg);
                index++;
            }
            ZLConstructorDesc desc = new ZLConstructorDesc(zlc, zbracket);

            return(desc);
        }
Пример #3
0
 public ZLParamInfo(ParameterInfo parameterInfo, ZLConstructorInfo zconstructor, int paramIndex)
     : this(parameterInfo, paramIndex)//, isGenericArg)
 {
     ZConstructor = zconstructor;
 }
Пример #4
0
 public ZLConstructorDesc(ZLConstructorInfo zconstructor, ZLBracketDesc bracketDesc)
 {
     ZConstructor = zconstructor;
     ZBracketDesc = bracketDesc;
 }