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;