CLRSharp.Type_Common_System.GetMethods C# (CSharp) Method

GetMethods() public method

public GetMethods ( string funcname ) : IMethod[]
funcname string
return IMethod[]
        public virtual 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();
        }