Skip to content

Commit 841011a

Browse files
Fix #4
Register instance with TType must register as TType, not gettype of instance
1 parent 7eefcee commit 841011a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bridge.Ioc/BridgeIoc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void RegisterInstance(object instance)
8787

8888
public void RegisterInstance<TType>(TType instance)
8989
{
90-
RegisterInstance((object)instance);
90+
RegisterInstance(typeof(TType), instance);
9191
}
9292
#endregion
9393

0 commit comments

Comments
 (0)