- size of the created array should only be the number of arguments (#5)

pull/32/head
Simon Gockner 7 years ago
parent 94cc484f0f
commit 42cc514bcc
  1. 2
      LightweightIocContainer/Registrations/TypedFactoryRegistration.cs

@ -102,7 +102,7 @@ namespace LightweightIocContainer.Registrations
if (args.Any())
{
generator.Emit(OpCodes.Ldc_I4_S, args.Length + 1);
generator.Emit(OpCodes.Ldc_I4_S, args.Length);
generator.Emit(OpCodes.Newarr, typeof(object));
for (int i = 0; i < args.Length; i++)

Loading…
Cancel
Save