Catel.Reflection.TypeInfoExtensions.GetMethod C# (CSharp) Метод

GetMethod() публичный статический Метод

Gets the method with the specified name.
The is null. The is null or whitespace.
public static GetMethod ( this typeInfo, string name, BindingFlags bindingFlags ) : MethodInfo
typeInfo this The .
name string The name of the member to retrieve.
bindingFlags BindingFlags The binding flags.
Результат System.Reflection.MethodInfo
        public static MethodInfo GetMethod(this TypeInfo typeInfo, string name, BindingFlags bindingFlags)
        {
            Argument.IsNotNull("typeInfo", typeInfo);
            Argument.IsNotNullOrWhitespace("name", name);

            return (from x in GetMethods(typeInfo, bindingFlags)
                    where x.Name == name
                    select x).FirstOrDefault();
        }

Same methods

TypeInfoExtensions::GetMethod ( this typeInfo, string name, Type types, BindingFlags bindingFlags ) : MethodInfo