1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
+ using Microsoft . Framework . Internal ;
5
+
4
6
namespace Microsoft . Framework . Localization
5
7
{
6
8
public static class StringLocalizerExtensions
@@ -10,7 +12,7 @@ public static class StringLocalizerExtensions
10
12
/// </summary>
11
13
/// <param name="name">The name of the string resource.</param>
12
14
/// <returns>The string resource as a <see cref="LocalizedString"/>.</returns>
13
- public static LocalizedString GetString ( this IStringLocalizer stringLocalizer , string name )
15
+ public static LocalizedString GetString ( [ NotNull ] this IStringLocalizer stringLocalizer , [ NotNull ] string name )
14
16
{
15
17
return stringLocalizer [ name ] ;
16
18
}
@@ -21,7 +23,7 @@ public static LocalizedString GetString(this IStringLocalizer stringLocalizer, s
21
23
/// <param name="name">The name of the string resource.</param>
22
24
/// <param name="arguments">The values to format the string with.</param>
23
25
/// <returns>The formatted string resource as a <see cref="LocalizedString"/>.</returns>
24
- public static LocalizedString GetString ( this IStringLocalizer stringLocalizer , string name , params object [ ] arguments )
26
+ public static LocalizedString GetString ( [ NotNull ] this IStringLocalizer stringLocalizer , [ NotNull ] string name , params object [ ] arguments )
25
27
{
26
28
return stringLocalizer [ name , arguments ] ;
27
29
}
0 commit comments