diff --git a/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs b/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs index 10f95dbb..1ba5b4e1 100644 --- a/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs +++ b/Cpp2IL.Core/Model/Contexts/TypeAnalysisContext.cs @@ -98,7 +98,7 @@ public string NamespaceAsSubdirs get { var ns = Namespace; - return string.IsNullOrEmpty(ns) ? "" : Path.Combine(ns.Split('.')); + return string.IsNullOrEmpty(ns) ? "" : Path.Combine(MiscUtils.CleanPathElement(ns).Split('.')); } }