BoC.InversionOfControl.SimpleInjector.AllowMultipleConstructorResolutionBehavior.GetSinglePublicConstructor C# (CSharp) Метод

GetSinglePublicConstructor() приватный статический Метод

private static GetSinglePublicConstructor ( Type implementationType ) : ConstructorInfo
implementationType System.Type
Результат System.Reflection.ConstructorInfo
        private static ConstructorInfo GetSinglePublicConstructor(Type implementationType)
        {
            return (
              from ctor in implementationType.GetConstructors()
              orderby ctor.GetParameters().Length descending
              select ctor)
             .First();
        }