Skip to content

Commit

Permalink
Fix parameter count calculation for method signatures with ExplicitThis
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Feb 28, 2023
1 parent c3a8193 commit dae9909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsmResolver.DotNet/Signatures/MethodSignatureBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected void WriteParametersAndReturnType(BlobSerializationContext context)
public int GetTotalParameterCount()
{
int count = ParameterTypes.Count + SentinelParameterTypes.Count;
if (HasThis || ExplicitThis)
if (HasThis && !ExplicitThis)
count++;
return count;
}
Expand Down

0 comments on commit dae9909

Please sign in to comment.