LocalizableString Members
Retrieves localized strings based on a key and updates them automatically when the current culture (locale) changes.Constructors
Name | Description |
---|---|
LocalizableString(ILocalizer, String, Func<String, String>) | Initializes a new instance of the LocalizableString class with specified settings. |
LocalizableString(String, Func<String, String>) | Initializes a new instance of the LocalizableString class with specified settings. |
Properties
Name | Description |
---|---|
Value | Gets the current localized string value. The value is updated automatically when the culture changes. |
Methods
Name | Description |
---|---|
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from System.Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from System.Object. |
GetHashCode() | Serves as the default hash function. Inherited from System.Object. |
GetType() | Gets the Type of the current instance. Inherited from System.Object. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from System.Object. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from System.Object. |
ToString() | Returns a string that represents the current object. Inherited from System.Object. |
Update() | Updates localized strings. The method fetches localized strings from the ILocalizer service and reflects any changes in the application’s culture. |
See Also