LocalText class
namespace: Serenity assembly: Serenity.Net.Core
Defines a localizable text resource. Contains a local text key and has implicit conversions to and from String.
public class LocalText : ILocalText
Public Members
| name | description |
|---|---|
| LocalText(…) | Creates a new LocalText instance that contains the specified local text key |
| static readonly Empty | An empty local text instance like string.Empty |
| Key { get; } | Gets the local text key |
| ToString(…) | Returns the translation for current context |
| const InvariantLanguageID | Invariant language ID is an empty string |
| implicit operator | Implicit conversion from String that creates a new instance of LocalText with the specified key. |
See Also
- interface ILocalText
- Source: LocalText.cs