mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 10:47:21 +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 SentenceStructureExtensions
|
||||
|
||||
extension(SentenceStructure sentenceStructure)
|
||||
{
|
||||
public string Name() => sentenceStructure switch
|
||||
public string Name => sentenceStructure switch
|
||||
{
|
||||
SentenceStructure.ACTIVE => TB("Active voice"),
|
||||
SentenceStructure.PASSIVE => TB("Passive voice"),
|
||||
@@ -14,7 +14,7 @@ public static class SentenceStructureExtensions
|
||||
_ => TB("Not Specified"),
|
||||
};
|
||||
|
||||
public string Prompt() => sentenceStructure switch
|
||||
public string Prompt => sentenceStructure switch
|
||||
{
|
||||
SentenceStructure.ACTIVE => " Use an active voice for the sentence structure.",
|
||||
SentenceStructure.PASSIVE => " Use a passive voice for the sentence structure.",
|
||||
|
||||
Reference in new issue
Block a user