diff --git a/src/SimpleInjector/Container.Registration.Batch.cs b/src/SimpleInjector/Container.Registration.Batch.cs index 1b5ff34d6..7c30ca74c 100644 --- a/src/SimpleInjector/Container.Registration.Batch.cs +++ b/src/SimpleInjector/Container.Registration.Batch.cs @@ -281,6 +281,7 @@ public void RegisterSingleton(Type openGenericServiceType, IEnumerable nameof(ContainerCollectionRegistrator.Register) + " instead. " + "Will be removed in version 6.0.", error: true)] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public void RegisterCollection(IEnumerable assemblies) where TService : class { @@ -309,6 +310,7 @@ public void RegisterCollection(IEnumerable assemblies) nameof(ContainerCollectionRegistrator.Register) + " instead. " + "Will be removed in version 6.0.", error: true)] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public void RegisterCollection(Type serviceType, params Assembly[] assemblies) { this.Collection.Register(serviceType, assemblies); @@ -336,6 +338,7 @@ public void RegisterCollection(Type serviceType, params Assembly[] assemblies) nameof(ContainerCollectionRegistrator.Register) + " instead. " + "Will be removed in version 6.0.", error: true)] + [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] public void RegisterCollection(Type serviceType, IEnumerable assemblies) { this.Collection.Register(serviceType, assemblies);