BoC.InversionOfControl.SimpleInjector.AllowMultipleConstructorResolutionBehavior.GetSinglePublicConstructor C# (CSharp) Method

GetSinglePublicConstructor() private static method

private static GetSinglePublicConstructor ( Type implementationType ) : ConstructorInfo
implementationType System.Type
return System.Reflection.ConstructorInfo
        private static ConstructorInfo GetSinglePublicConstructor(Type implementationType)
        {
            return (
              from ctor in implementationType.GetConstructors()
              orderby ctor.GetParameters().Length descending
              select ctor)
             .First();
        }