Skip to content

Commit 8eacb78

Browse files
committed
Fixed the WINDOWS_PHONE check
1 parent 11ff2e4 commit 8eacb78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TinyIoC/TinyIoC.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3789,7 +3789,7 @@ private static bool IsValidAssignment(Type registerType, Type registerImplementa
37893789
if (registerType.IsInterface())
37903790
{
37913791
#if WINDOWS_PHONE
3792-
return registerImplementation.GetInterface(registerType.Name, true) != null;
3792+
if (registerImplementation.GetInterface(registerType.Name, true) == null)
37933793
#else
37943794
if (!registerImplementation.FindInterfaces((t, o) => t.Name == registerType.Name, null).Any())
37953795
return false;

0 commit comments

Comments
 (0)