diff --git a/CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs b/CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs index 00ac9adf..445d169c 100644 --- a/CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs +++ b/CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs @@ -28,7 +28,7 @@ public static bool CompatibleSignatureToDelegate(this IMethodSymbol method, INam } for (var i = 0; i < method.Parameters.Length; i++) { - if (!invoke.Parameters[i].Type.InheritsFromOrEquals(method.Parameters[i].Type)) { + if (!invoke.Parameters[i].Type.InheritsFromOrEquals(method.Parameters[i].Type, true)) { return false; } }