diff --git a/ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs b/ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs index 58744d44ae..29e24ddbad 100644 --- a/ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs +++ b/ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs @@ -120,6 +120,9 @@ static bool IsValidIdentifier(string identifier) if (identifier[0] == '.') return identifier == ".ctor" || identifier == ".cctor"; + if (identifier.Contains("..")) + return false; + if (Metadata.ILOpCodeExtensions.ILKeywords.Contains(identifier)) return false;