From a5ab2d3f5f4723cc79ff795bddbbca6aa6fdde24 Mon Sep 17 00:00:00 2001 From: MASES Public Developers Team <94312179+masesdevelopers@users.noreply.github.com> Date: Sat, 25 Nov 2023 23:14:51 +0100 Subject: [PATCH] Fix method avoidance selector (#148) --- src/net/engine/Reflector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/engine/Reflector.cs b/src/net/engine/Reflector.cs index fcbcf3e66a9..bf6f79b49f9 100644 --- a/src/net/engine/Reflector.cs +++ b/src/net/engine/Reflector.cs @@ -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;