BoC.InversionOfControl.SimpleInjector.AllowMultipleConstructorResolutionBehavior.GetSinglePublicConstructor C# (CSharp) Méthode

GetSinglePublicConstructor() private static méthode

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