InMemoryLocalizationRegistryBuilder
Namespace: Bogoware.Localization
Fluent builder for InMemoryLocalizationRegistry.
Uses typeof(T).FullName as the FQDN key for each registered template.
public class InMemoryLocalizationRegistryBuilderInheritance Object → InMemoryLocalizationRegistryBuilder
Attributes NullableContextAttribute, NullableAttribute
Constructors
InMemoryLocalizationRegistryBuilder()
public InMemoryLocalizationRegistryBuilder()Methods
Add<T>(String)
Registers a format template for the given type, keyed by its full name.
public InMemoryLocalizationRegistryBuilder Add<T>(string format)Type Parameters
T
The type this template describes. Its FullName becomes the FQDN key.
Parameters
format String
A format string with {PropertyName} placeholders that match public properties on .
Returns
InMemoryLocalizationRegistryBuilder
This builder instance for fluent chaining.
Build()
Builds the InMemoryLocalizationRegistry with all registered templates.
public InMemoryLocalizationRegistry Build()Returns
InMemoryLocalizationRegistry
A new InMemoryLocalizationRegistry containing all registered templates.