IStringLocalizerFactory Interface¶
Represents a factory that creates Microsoft.Extensions.Localization.IStringLocalizer
instances.
- Namespace
Microsoft.Extensions.Localization
- Assemblies
- Microsoft.Extensions.Localization.Abstractions
Syntax¶
public interface IStringLocalizerFactory
-
interface
Microsoft.Extensions.Localization.
IStringLocalizerFactory
Methods¶
-
Create
(System.String, System.String)¶ Creates an
Microsoft.Extensions.Localization.IStringLocalizer
.Arguments: - baseName (System.String) – The base name of the resource to load strings from.
- location (System.String) – The location to load resources from.
Return type: Returns: IStringLocalizer Create(string baseName, string location)
-
Create
(System.Type) Creates an
Microsoft.Extensions.Localization.IStringLocalizer
using theSystem.Reflection.Assembly
andSystem.Type.FullName
of the specifiedSystem.Type
.Arguments: resourceSource (System.Type) – The System.Type
.Return type: Microsoft.Extensions.Localization.IStringLocalizer Returns: The Microsoft.Extensions.Localization.IStringLocalizer
.IStringLocalizer Create(Type resourceSource)
-