Class TigerTextAttribute
Provides display text and optional localized resource keys for TigerCli-facing enum values,
settings properties, and command metadata.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class TigerTextAttribute : Attribute
- Inheritance
-
TigerTextAttribute
- Inherited Members
Remarks
TigerCli uses this metadata when it needs a human-facing label or description while keeping
code identifiers stable. Set ResourceKey or DescriptionResourceKey
when the text should be resolved from application resources for the active culture.
Constructors
TigerTextAttribute(string)
Creates metadata with the default display text.
public TigerTextAttribute(string text)
Parameters
textstring
Properties
Description
Optional default description text.
public string? Description { get; set; }
Property Value
DescriptionResourceKey
Optional resource key for the localized description text.
public string? DescriptionResourceKey { get; set; }
Property Value
ResourceKey
Optional resource key for the localized display text.
public string? ResourceKey { get; set; }
Property Value
Text
Default display text used when no resource key is supplied or resolved.
public string Text { get; }