Moved all extension methods into extension blocks (#1155)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 10:46:18 +01:00
1 parent acc7d09fa2
commit c0a75f39ac
138 files changed
+5884 -4954

No files matched your search

@@ -6,26 +6,29 @@ public static class AssistantCategoryExtensions
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AssistantCategoryExtensions).Namespace, nameof(AssistantCategoryExtensions));
public static string Name(this AssistantCategory category) => category switch
extension(AssistantCategory category)
{
AssistantCategory.AS_IS => TB("Select the assistant category"),
AssistantCategory.GENERAL => TB("General"),
AssistantCategory.SCIENTIFIC => TB("Scientific"),
AssistantCategory.BUSINESS => TB("Business"),
AssistantCategory.PRODUCTIVITY => TB("Productivity"),
AssistantCategory.DEVELOPMENT => TB("Software Development"),
AssistantCategory.LEARNING => TB("Learning"),
AssistantCategory.AI_STUDIO => TB("AI Studio Development"),
AssistantCategory.OTHER => TB("Other"),
public string Name() => category switch
{
AssistantCategory.AS_IS => TB("Select the assistant category"),
AssistantCategory.GENERAL => TB("General"),
AssistantCategory.SCIENTIFIC => TB("Scientific"),
AssistantCategory.BUSINESS => TB("Business"),
AssistantCategory.PRODUCTIVITY => TB("Productivity"),
AssistantCategory.DEVELOPMENT => TB("Software Development"),
AssistantCategory.LEARNING => TB("Learning"),
AssistantCategory.AI_STUDIO => TB("AI Studio Development"),
AssistantCategory.OTHER => TB("Other"),
_ => string.Empty,
};
public static string NameSelecting(this AssistantCategory category)
{
if(category is AssistantCategory.AS_IS)
return TB("Please select the assistant category");
_ => string.Empty,
};
return category.Name();
public string NameSelecting()
{
if(category is AssistantCategory.AS_IS)
return TB("Please select the assistant category");
return category.Name();
}
}
}