mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 05:32:56 +00:00
Formatting
This commit is contained in:
parent
95a6a8a3d8
commit
be52c94ec7
@ -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(".", "::");
|
||||
|
Loading…
Reference in New Issue
Block a user