Skip to content

Commit

Permalink
Fixed generic name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHellTower authored Nov 5, 2023
1 parent 657fb58 commit 45fa6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Confuser.Renamer/NameService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public string ObfuscateName(IDnlibDef dnlibDef, RenameMode mode) {

public string ObfuscateName(string format, string name, RenameMode mode, bool preserveGenericParams = false) {
int genericParamsCount = 0;
if (preserveGenericParams) {
if (preserveGenericParams && !string.IsNullOrEmpty(name)) {
name = ParseGenericName(name, out genericParamsCount);
}

Expand Down

0 comments on commit 45fa6da

Please # to comment.