Skip to content
Permalink
Browse files

Fix Reflection.ThrowIfMethodsNotOverloaded (#2284)

  • Loading branch information
TheKeyblader authored and glennawatson committed Dec 17, 2019
1 parent 858ef01 commit 75e1b70a33b5cdf4570e934f6ebc67231d181024
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ReactiveUI/Expression/Reflection.cs
@@ -396,7 +396,7 @@ public static void ThrowIfMethodsNotOverloaded(string callingTypeName, object ta
})
.FirstOrDefault(x => x.methodImplementation == null);

if (missingMethod.methodImplementation == default)
if (missingMethod.methodName != default)
{
throw new Exception($"Your class must implement {missingMethod.methodName} and call {callingTypeName}.{missingMethod.methodName}");
}

0 comments on commit 75e1b70

Please sign in to comment.
You can’t perform that action at this time.