System.Runtime.Serialization.Globals.GetMethod C# (CSharp) Method

GetMethod() static private method

static private GetMethod ( this type, string methodName, BindingFlags bindingFlags, Type parameterTypes ) : MethodInfo
type this
methodName string
bindingFlags BindingFlags
parameterTypes System.Type
return System.Reflection.MethodInfo
        internal static MethodInfo GetMethod(this Type type, string methodName, BindingFlags bindingFlags, Type[] parameterTypes)
        {
            var methodInfos = type.GetMethods(bindingFlags);
            var methodInfo = FilterMethodBases(methodInfos.Cast<MethodBase>().ToArray(), parameterTypes, methodName);
            return methodInfo != null ? (MethodInfo)methodInfo : null;
        }