We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81ac5b commit 19b1871Copy full SHA for 19b1871
docs/core/extensions/snippets/localization/example/MessageService.cs
@@ -3,12 +3,12 @@
3
4
namespace Localization.Example;
5
6
-public sealed class MessageService(IStringLocalizer<MessageService> localizer)
+public sealed class MessageService(IStringLocalizer<MessageService> _localizer)
7
{
8
- [return: NotNullIfNotNull(nameof(localizer))]
+ [return: NotNullIfNotNull(nameof(_localizer))]
9
public string? GetGreetingMessage()
10
11
- LocalizedString localizedString = localizer["GreetingMessage"];
+ LocalizedString localizedString = _localizer["GreetingMessage"];
12
return localizedString;
13
}
14
0 commit comments