diff --git a/LightweightIocContainer/Installers/AssemblyInstaller.cs b/LightweightIocContainer/Installers/AssemblyInstaller.cs index 8823855..89a1e6f 100644 --- a/LightweightIocContainer/Installers/AssemblyInstaller.cs +++ b/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));