Skip to content

Commit

Permalink
Escape identifiers containing repeating dots
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkOoze authored and siegfriedpammer committed May 29, 2021
1 parent b45c009 commit 9747a2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9747a2b

Please sign in to comment.