diff --git a/LightweightIocContainer.sln.DotSettings b/LightweightIocContainer.sln.DotSettings index dc211cb..888f547 100644 --- a/LightweightIocContainer.sln.DotSettings +++ b/LightweightIocContainer.sln.DotSettings @@ -14,4 +14,5 @@ True True True - True \ No newline at end of file + True + True \ No newline at end of file diff --git a/LightweightIocContainer/Installers/AssemblyInstaller.cs b/LightweightIocContainer/Installers/AssemblyInstaller.cs index 8a05534..a340ab5 100644 --- a/LightweightIocContainer/Installers/AssemblyInstaller.cs +++ b/LightweightIocContainer/Installers/AssemblyInstaller.cs @@ -44,7 +44,7 @@ namespace LightweightIocContainer.Installers /// The current public void Install(IIocContainer container) { - foreach (var installer in Installers) + foreach (IIocInstaller installer in Installers) { installer.Install(container); } diff --git a/LightweightIocContainer/IocContainer.cs b/LightweightIocContainer/IocContainer.cs index 9a193b6..590346b 100644 --- a/LightweightIocContainer/IocContainer.cs +++ b/LightweightIocContainer/IocContainer.cs @@ -30,7 +30,7 @@ namespace LightweightIocContainer /// An instance of the current public IIocContainer Install(params IIocInstaller[] installers) { - foreach (var installer in installers) + foreach (IIocInstaller installer in installers) { installer.Install(this); } @@ -207,8 +207,8 @@ namespace LightweightIocContainer private object[] ResolveConstructorArguments(Type type, object[] arguments) { //find best ctor - IOrderedEnumerable sortedCtors = type.GetConstructors().OrderByDescending(c => c.GetParameters().Length); - foreach (var ctor in sortedCtors) + IOrderedEnumerable sortedConstructors = type.GetConstructors().OrderByDescending(c => c.GetParameters().Length); + foreach (ConstructorInfo ctor in sortedConstructors) { try { @@ -216,7 +216,7 @@ namespace LightweightIocContainer List ctorParams = new List(); ParameterInfo[] parameters = ctor.GetParameters(); - foreach (var parameter in parameters) + foreach (ParameterInfo parameter in parameters) { object fittingArgument = new InternalResolvePlaceholder(); if (argumentsList != null) diff --git a/LightweightIocContainer/Registrations/TypedFactoryRegistration.cs b/LightweightIocContainer/Registrations/TypedFactoryRegistration.cs index 9bd4fde..dda3eab 100644 --- a/LightweightIocContainer/Registrations/TypedFactoryRegistration.cs +++ b/LightweightIocContainer/Registrations/TypedFactoryRegistration.cs @@ -85,7 +85,7 @@ namespace LightweightIocContainer.Registrations constructorGenerator.Emit(OpCodes.Stfld, containerFieldBuilder); //set `_container` field constructorGenerator.Emit(OpCodes.Ret); - foreach (var createMethod in createMethods) + foreach (MethodInfo createMethod in createMethods) { //create a method that looks like this //public `createMethod.ReturnType` Create(`createMethod.GetParameters()`)