StringLocalizer<TResourceSource> Class

Definition

Provides strings for TResourceSource.

C#
public class StringLocalizer<TResourceSource> : Microsoft.Extensions.Localization.IStringLocalizer<TResourceSource>

Type Parameters

TResourceSource

The Type to provide strings for.

Inheritance
StringLocalizer<TResourceSource>
Implements

Constructors

Properties

Item[String, Object[]]

Gets the string resource with the given name and formatted with the supplied arguments.

Item[String]

Gets the string resource with the given name.

Methods

GetAllStrings(Boolean)

Gets all the resource strings.

Extension Methods

GetAllStrings(IStringLocalizer)

Gets all string resources including those for parent cultures.

GetString(IStringLocalizer, String, Object[])

Gets the string resource with the given name and formatted with the supplied arguments.

GetString(IStringLocalizer, String)

Gets the string resource with the given name.

Applies to

Toode Versioonid
.NET 10 (package-provided)
.NET Standard 2.0 (package-provided)