Skip to content

LocalText class

namespace: Serenity   assemblySerenity.Net.Core

Defines a localizable text resource. Contains a local text key and has implicit conversions to and from String.

public class LocalText : ILocalText
parameter description
key The local text key.

Public Members

name description
LocalText(…) Defines a localizable text resource. Contains a local text key and has implicit conversions to and from String.
static readonly Empty An empty local text instance, similar to Empty.
Key { get; } Gets the local text key.
ToString(…) Returns the translation for the current context.
const InvariantLanguageID The invariant language ID, which is an empty string.
implicit operator Implicit conversion from String that creates a new instance of LocalText with the specified key.

Remarks

Creates a new LocalText instance that contains the specified local text key.

See Also