Skip to content

Commit

Permalink
Clean up common C# types
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed May 26, 2024
1 parent 932202f commit 64cebdd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions EventPipe/SymbolCleaner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,17 @@ private static void AppendPrettifiedType(StringBuilder sb, ReadOnlySpan<char> st
return;
}

str = str switch
{
"int32" => "int",
"unsigned int32" => "uint",
"float32" => "float",
"float64" => "double",
"System.Object" => "object",
"System.String" => "string",
_ => str,
};

sb.Append(str);
sb.Append(suffix);
}
Expand Down

0 comments on commit 64cebdd

Please sign in to comment.