Пример #1
0
        public IMethod[] GetMethods(string funcname)
        {
            List <IMethod> methods = new List <IMethod>();

            if (funcname == ".ctor")
            {
                var cons = TypeForSystem.GetConstructors();
                foreach (var c in cons)
                {
                    methods.Add(new Method_Common_System(this, c));
                }
            }
            else
            {
                var __methods = TypeForSystem.GetMethods();
                foreach (var m in __methods)
                {
                    if (m.Name == funcname)
                    {
                        methods.Add(new Method_Common_System(this, m));
                    }
                }
            }

            return(methods.ToArray());
        }
Пример #2
0
        public virtual IMethod[] GetMethods(string funcname)
        {
            List <IMethod> methods = new List <IMethod>();

            if (funcname == ".ctor")
            {
                var cons = TypeForSystem.GetConstructors();
                {
                    var __array1       = cons;
                    var __arrayLength1 = __array1.Length;
                    for (int __i1 = 0; __i1 < __arrayLength1; ++__i1)
                    {
                        var c = __array1[__i1];
                        {
                            methods.Add(new Method_Common_System(this, c));
                        }
                    }
                }
            }
            else
            {
                var __methods = TypeForSystem.GetMethods();
                {
                    var __array2       = __methods;
                    var __arrayLength2 = __array2.Length;
                    for (int __i2 = 0; __i2 < __arrayLength2; ++__i2)
                    {
                        var m = __array2[__i2];
                        {
                            if (m.Name == funcname)
                            {
                                methods.Add(new Method_Common_System(this, m));
                            }
                        }
                    }
                }
            }

            return(methods.ToArray());
        }