Turned getter-like extension methods into extension properties (#1157)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 13:00:56 +01:00
1 parent 0375318b1b
commit f649febf88
286 files changed
+1379 -1109

No files matched your search

@@ -11,7 +11,7 @@ public static class MailboxConnectionFailureExtensions
/// <summary>
/// What went wrong, and what the user can do about it.
/// </summary>
public string GetDescription() => failure switch
public string Description => failure switch
{
MailboxConnectionFailure.AUTHENTICATION_FAILED => TB("The server rejected the username or the password. Some providers require an app password instead of your usual password."),
MailboxConnectionFailure.NETWORK_UNAVAILABLE => TB("The server could not be reached. Please check the host and the port, and whether you need a VPN connection."),
@@ -11,7 +11,7 @@ public static class MailboxProviderTemplateExtensions
/// <summary>
/// What the user enters as the username at this provider.
/// </summary>
public string GetDescription() => format switch
public string Description => format switch
{
MailboxUsernameFormat.EMAIL_ADDRESS => TB("Your full e-mail address."),
MailboxUsernameFormat.ADDRESS_NAME_PART => TB("The part of your e-mail address before the @ sign. When that does not work, try your full e-mail address."),