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

GetConstructor() static private method

static private GetConstructor ( this type, BindingFlags bindingFlags, Type parameterTypes ) : ConstructorInfo
type this
bindingFlags BindingFlags
parameterTypes System.Type
return System.Reflection.ConstructorInfo
        internal static ConstructorInfo GetConstructor(this Type type, BindingFlags bindingFlags, Type[] parameterTypes)
        {
            var constructorInfos = type.GetConstructors(bindingFlags);
            var constructorInfo = FilterMethodBases(constructorInfos.Cast<MethodBase>().ToArray(), parameterTypes, ".ctor");
            return constructorInfo != null ? (ConstructorInfo)constructorInfo : null;
        }