System.TypeExtensionMethods.GetMethod C# (CSharp) Method

GetMethod() public static method

public static GetMethod ( this type, string name ) : MethodInfo
type this
name string
return System.Reflection.MethodInfo
        public static MethodInfo GetMethod(this Type type, string name)
        {
            foreach (var method in type.GetRuntimeMethods())
            {
                if (method.Name == name)
                {
                    return method;
                }
            }
            return null;
        }

Same methods

TypeExtensionMethods::GetMethod ( this type, string name, Type parameters ) : MethodInfo