mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 22:28:26 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -6,7 +6,7 @@ public static class OperatingSystemExtensions
|
||||
|
||||
extension(OperatingSystem os)
|
||||
{
|
||||
public string Name() => os switch
|
||||
public string Name => os switch
|
||||
{
|
||||
OperatingSystem.NONE => TB("No operating system specified"),
|
||||
|
||||
@@ -16,7 +16,7 @@ public static class OperatingSystemExtensions
|
||||
_ => TB("Unknown operating system")
|
||||
};
|
||||
|
||||
public string ToPrompt() => os switch
|
||||
public string Prompt => os switch
|
||||
{
|
||||
OperatingSystem.NONE => "No operating system specified",
|
||||
|
||||
|
||||
Reference in new issue
Block a user