Formatting

This commit is contained in:
Thorsten Sommer 2025-05-03 21:36:50 +02:00
parent 95a6a8a3d8
commit be52c94ec7
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -12,8 +12,8 @@ public static class ILangExtensions
typeName ??= type.Name;
typeNamespace ??= type.Namespace!;
// When the type's name ends with `1 or 2`, etc. (i.e., generic classes), remove it:
if(typeName.Contains("`"))
// When the type's name ends with `1 or `2, etc. (i.e., generic classes), remove it:
if(typeName.Contains('`'))
typeName = typeName[..typeName.IndexOf('`')];
var ns = $"{typeNamespace}::{typeName}".ToUpperInvariant().Replace(".", "::");