Skip to content

Commit

Permalink
Missing default value for variance check
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Jul 25, 2024
1 parent fa0bdff commit f7ec0ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Configuration/ContainerConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class ContainerConfiguration
public Action<ContainerConfiguration>? ConfigurationChangedEvent { get; internal set; }

/// <summary>
/// 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.
/// </summary>
public Func<MemberInfo, bool>? AutoMemberInjectionFilter { get; internal set; }

Expand All @@ -99,7 +99,7 @@ public class ContainerConfiguration
/// <summary>
/// When it's true, the container checks for generic covariance and contravariance during the resolution of generic type collections.
/// </summary>
public bool VariantGenericTypesEnabled { get; internal set; }
public bool VariantGenericTypesEnabled { get; internal set; } = true;

internal object? UniversalName { get; set; }

Expand Down
8 changes: 4 additions & 4 deletions src/Configuration/Rules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public enum RegistrationBehavior
}

/// <summary>
/// Represents the rules for auto injecting members.
/// Represents the rules for auto-injecting members.
/// </summary>
[Flags]
public enum AutoMemberInjectionRules
Expand All @@ -66,17 +66,17 @@ public enum AutoMemberInjectionRules
None = 1 << 1,

/// <summary>
/// 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.
/// </summary>
PropertiesWithPublicSetter = 1 << 2,

/// <summary>
/// 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.
/// </summary>
PropertiesWithLimitedAccess = 1 << 3,

/// <summary>
/// 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.
/// </summary>
PrivateFields = 1 << 4
}
Expand Down

0 comments on commit f7ec0ae

Please sign in to comment.