From 9d0ef79595617663bd54fca8a944cfcd6f178f66 Mon Sep 17 00:00:00 2001 From: Biarity Date: Sun, 11 Feb 2018 13:36:34 +1000 Subject: [PATCH] Handle type mismatch for custom methods --- Sieve/Services/SieveProcessor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Sieve/Services/SieveProcessor.cs b/Sieve/Services/SieveProcessor.cs index c8f35d8..d168102 100644 --- a/Sieve/Services/SieveProcessor.cs +++ b/Sieve/Services/SieveProcessor.cs @@ -294,6 +294,7 @@ namespace Sieve.Services result = customMethod.Invoke(parent, parameters) as IQueryable; } + catch (ArgumentException) { } // name matched with custom emthod for a differnt type catch (TargetParameterCountException) { if (optionalParameters != null)