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

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

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

            return (from x in GetMethods(typeInfo, bindingFlags)
                    where x.Name == name && CollectionHelper.IsEqualTo(types, from parameterInfo in x.GetParameters()
                                                                              select parameterInfo.ParameterType)
                    select x).FirstOrDefault();
        }
        #endregion

Same methods

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