From 292c21d68efd776ff658de4a941f36df14d2bc19 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 21 Feb 2025 07:32:32 +0100 Subject: [PATCH] #3401: Treat class name as single name and not as path. --- .../CSharp/ProjectDecompiler/WholeProjectDecompiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs index da5671559..283e2cb94 100644 --- a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs @@ -238,7 +238,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler string GetFileFileNameForHandle(TypeDefinitionHandle h) { var type = metadata.GetTypeDefinition(h); - string file = SanitizeFileName(metadata.GetString(type.Name) + ".cs"); + string file = CleanUpFileName(metadata.GetString(type.Name) + ".cs"); string ns = metadata.GetString(type.Namespace); if (string.IsNullOrEmpty(ns)) {