Interface IMessageLocalizer
Provides a generic way to support localized messages on attribute decorated methods.
Namespace: Cuemon.Globalization
Assembly: Cuemon.Core.dll
Syntax
public interface IMessageLocalizer
Properties
| Improve this DocMessage
Gets or sets and explicit message string.
Declaration
string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String | This property is intended to be used for non-localizable messages. Use MessageResourceType and MessageResourceName for localizable messages. |
MessageResourceName
Gets or sets the resource name (property name) to use as the key for lookups on the resource type.
Declaration
string MessageResourceName { get; set; }
Property Value
Type | Description |
---|---|
System.String | Use this property to set the name of the property within MessageResourceType that will provide a localized message. |
MessageResourceType
Gets or sets the resource type to use for message lookups.
Declaration
Type MessageResourceType { get; set; }
Property Value
Type | Description |
---|---|
System.Type | Use this property only in conjunction with MessageResourceName. They are used together to retrieve localized messages at runtime. |