Ejemplo n.º 1
0
        public static ZConstructorDesc CreateZConstructorDesc(ConstructorInfo ci)
        {
            List <ZMethodNormalArg> args = new List <ZMethodNormalArg>();

            foreach (ParameterInfo param in ci.GetParameters())
            {
                ZMethodNormalArg arg = new ZMethodNormalArg(param.Name, ZTypeManager.GetBySharpType(param.ParameterType) as ZType);
                args.Add(arg);
            }
            ZConstructorDesc desc = new ZConstructorDesc(args);

            desc.Constructor = ci;
            return(desc);
        }
Ejemplo n.º 2
0
        //public void Add(params  ZMethodArg[] args)
        //{
        //    Args.AddRange(args);
        //}

        public bool Compare(ZConstructorDesc another)
        {
            if (this.Args.Count != another.Args.Count)
            {
                return(false);
            }
            for (int i = 0; i < this.Args.Count; i++)
            {
                if (this.Args[i].Compare(another.Args[i]) == false)
                {
                    return(false);
                }
            }
            return(true);
            //return EqBrackets(another);
        }