- only use installers that aren't private

pull/57/head
Simon G 4 years ago
parent 740e661cc2
commit 82fd53b2b0
  1. 2
      LightweightIocContainer/Installers/AssemblyInstaller.cs

@ -26,7 +26,7 @@ namespace LightweightIocContainer.Installers
Type[] types = assembly.GetTypes();
foreach (Type type in types)
{
if (!typeof(IIocInstaller).IsAssignableFrom(type))
if (!typeof(IIocInstaller).IsAssignableFrom(type) || type.IsNestedPrivate)
continue;
Installers.Add((IIocInstaller) Activator.CreateInstance(type));

Loading…
Cancel
Save