From 64cebdd507279258396de7cae2dab75e8042a0fb Mon Sep 17 00:00:00 2001 From: verdie-g Date: Sat, 25 May 2024 22:22:23 -0400 Subject: [PATCH] Clean up common C# types --- EventPipe/SymbolCleaner.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/EventPipe/SymbolCleaner.cs b/EventPipe/SymbolCleaner.cs index ca7275f..a28b232 100644 --- a/EventPipe/SymbolCleaner.cs +++ b/EventPipe/SymbolCleaner.cs @@ -305,6 +305,17 @@ private static void AppendPrettifiedType(StringBuilder sb, ReadOnlySpan 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); }