Skip to content

Commit

Permalink
Fix method avoidance selector
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Nov 25, 2023
1 parent 4e9a689 commit 29f2daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/engine/Reflector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ static bool AvoidExportMethods(this Type type, MethodInfo method)
string[] methodNamesToCheck;
if (Const.SpecialNames.ExportingMethodsAvoidanceMap.TryGetValue(fullname, out methodNamesToCheck))
{
return methodNamesToCheck != null && methodNamesToCheck.Contains(methodName);
return methodNamesToCheck == null || methodNamesToCheck.Contains(methodName);
}

return false;
Expand Down

0 comments on commit 29f2daa

Please sign in to comment.