Skip to content

Commit 69f3af9

Browse files
committed
Fixing collection resolution
1 parent 5a2b0b6 commit 69f3af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnityContainer.Implementation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ internal Type GetFinalType(Type argType)
515515
}
516516
else if (type.IsArray)
517517
{
518-
next = info.GetElementType();
518+
next = type.GetElementType();
519519
if (typeof(Lazy<>) != next &&
520520
typeof(Func<>) != next &&
521521
null != GetChained(next)) return next;

0 commit comments

Comments
 (0)