mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:08:19 +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 AudienceExpertiseExtensions
|
||||
|
||||
extension(AudienceExpertise expertise)
|
||||
{
|
||||
public string Name() => expertise switch
|
||||
public string Name => expertise switch
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => TB("Unspecified expertise"),
|
||||
AudienceExpertise.NON_EXPERTS => TB("No expertise"),
|
||||
@@ -17,7 +17,7 @@ public static class AudienceExpertiseExtensions
|
||||
_ => TB("Unspecified expertise"),
|
||||
};
|
||||
|
||||
public string Prompt() => expertise switch
|
||||
public string Prompt => expertise switch
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => "Do not tailor the text to a specific expertise level.",
|
||||
AudienceExpertise.NON_EXPERTS => "Avoid jargon and explain specialized concepts plainly.",
|
||||
|
||||
Reference in new issue
Block a user