Skip to content

Commit

Permalink
AddressOf delegate signatures can accept classes implementing the par…
Browse files Browse the repository at this point in the history
…ameter interface as compatible parameter types
  • Loading branch information
gaschd committed Nov 5, 2024
1 parent 9a08d6e commit 552f89d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeConverter/Util/FromRoslyn/IMethodSymbolExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 552f89d

Please sign in to comment.