From 73355269e013ddd06545c617954307258fc62512 Mon Sep 17 00:00:00 2001 From: Simon G Date: Wed, 15 Dec 2021 10:43:33 +0100 Subject: [PATCH] - fix wrong addition of multiton scope --- LightweightIocContainer/IocContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LightweightIocContainer/IocContainer.cs b/LightweightIocContainer/IocContainer.cs index 7e5d434..edc5f9c 100644 --- a/LightweightIocContainer/IocContainer.cs +++ b/LightweightIocContainer/IocContainer.cs @@ -329,7 +329,7 @@ namespace LightweightIocContainer object multitonScopeArgument = TryGetMultitonScopeArgument(multitonRegistration, arguments); parametersToResolve ??= new List(); - parametersToResolve.Add(multitonScopeArgument); + parametersToResolve.Insert(0, multitonScopeArgument); //insert scope at first place, won't be passed to ctor when creating multiton } if (result)