From f7ec0ae83aa9b6e44e546cb3d7a5a72152e39ae3 Mon Sep 17 00:00:00 2001 From: Peter Csajtai Date: Fri, 26 Jul 2024 01:58:20 +0200 Subject: [PATCH] Missing default value for variance check --- src/Configuration/ContainerConfiguration.cs | 4 ++-- src/Configuration/Rules.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Configuration/ContainerConfiguration.cs b/src/Configuration/ContainerConfiguration.cs index 3f012baf..19fcc7fd 100644 --- a/src/Configuration/ContainerConfiguration.cs +++ b/src/Configuration/ContainerConfiguration.cs @@ -80,7 +80,7 @@ public class ContainerConfiguration public Action? ConfigurationChangedEvent { get; internal set; } /// - /// A filter delegate used to determine which members should be auto injected and which are not. + /// A filter delegate used to determine which members should be auto-injected and which are not. /// public Func? AutoMemberInjectionFilter { get; internal set; } @@ -99,7 +99,7 @@ public class ContainerConfiguration /// /// When it's true, the container checks for generic covariance and contravariance during the resolution of generic type collections. /// - public bool VariantGenericTypesEnabled { get; internal set; } + public bool VariantGenericTypesEnabled { get; internal set; } = true; internal object? UniversalName { get; set; } diff --git a/src/Configuration/Rules.cs b/src/Configuration/Rules.cs index 0fd1f7a9..9a6132dc 100644 --- a/src/Configuration/Rules.cs +++ b/src/Configuration/Rules.cs @@ -55,7 +55,7 @@ public enum RegistrationBehavior } /// - /// Represents the rules for auto injecting members. + /// Represents the rules for auto-injecting members. /// [Flags] public enum AutoMemberInjectionRules @@ -66,17 +66,17 @@ public enum AutoMemberInjectionRules None = 1 << 1, /// - /// With this flag the container will perform auto injection on properties which has a public setter. + /// With this flag the container will perform auto-injection on properties which has a public setter. /// PropertiesWithPublicSetter = 1 << 2, /// - /// With this flag the container will perform auto injection on properties which has a non public setter as well. + /// With this flag the container will perform auto-injection on properties which has a non-public setter as well. /// PropertiesWithLimitedAccess = 1 << 3, /// - /// With this flag the container will perform auto injection on private fields too. + /// With this flag the container will perform auto-injection on private fields too. /// PrivateFields = 1 << 4 }