mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 23:27:22 +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 AudienceProfileExtensions
|
||||
|
||||
extension(AudienceProfile profile)
|
||||
{
|
||||
public string Name() => profile switch
|
||||
public string Name => profile switch
|
||||
{
|
||||
AudienceProfile.UNSPECIFIED => TB("Unspecified audience profile"),
|
||||
AudienceProfile.STUDENTS => TB("Students"),
|
||||
@@ -23,7 +23,7 @@ public static class AudienceProfileExtensions
|
||||
_ => TB("Unspecified audience profile"),
|
||||
};
|
||||
|
||||
public string Prompt() => profile switch
|
||||
public string Prompt => profile switch
|
||||
{
|
||||
AudienceProfile.UNSPECIFIED => "Do not tailor the text to a specific audience profile.",
|
||||
AudienceProfile.STUDENTS => "Write for students. Keep it structured, easy to study, and focused on key takeaways.",
|
||||
|
||||
Reference in new issue
Block a user