Exemplo n.º 1
0
        //------------------------------------------------------------------------------
        public static Constructor Create(ConstructorInfo aNative)
        {
            var ctor = new Constructor();

            ctor.Name          = aNative.Name;
            ctor._Instructions = IlReader.ReadInstructions(aNative);

            foreach (var param in aNative.GetParameters())
            {
                ctor._Parameters.Add(Parameter.Create(param));
            }

            return(ctor);
        }
Exemplo n.º 2
0
        //------------------------------------------------------------------------------
        public static Method Create(MethodInfo aNative)
        {
            var method = new Method();

            method.Name          = aNative.Name;
            method._Instructions = IlReader.ReadInstructions(aNative);

            foreach (var param in aNative.GetParameters())
            {
                method._Parameters.Add(Parameter.Create(param));
            }

            return(method);
        }