We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227331b commit b22f8a0Copy full SHA for b22f8a0
1 file changed
Oqtane.Client/Modules/Controls/LocalizableComponent.cs
@@ -32,10 +32,10 @@ protected IStringLocalizer T
32
var controlTypeName = controlType.Name;
33
var assemblyName = controlType.Assembly.GetName().Name;
34
35
- // Trim "`1" suffix (for generic type) to make it consistent like normal control types
36
- if (controlTypeName.EndsWith("`1"))
+ if (controlType.IsGenericType)
37
{
38
- controlTypeName = controlTypeName.TrimEnd('`', '1');
+ // Trim generic type suffix
+ controlTypeName = controlTypeName[..controlTypeName.IndexOf('`')];
39
}
40
41
controlTypeName = controlType.FullName[..(controlType.FullName.IndexOf(controlTypeName) + controlTypeName.Length)];
0 commit comments