Table of Contents

Class TigerTextAttribute

Namespace
ItTiger.Core
Assembly
ItTiger.Core.dll
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

text string

Properties

Description

Optional default description text.
public string? Description { get; set; }

Property Value

string

DescriptionResourceKey

Optional resource key for the localized description text.
public string? DescriptionResourceKey { get; set; }

Property Value

string

ResourceKey

Optional resource key for the localized display text.
public string? ResourceKey { get; set; }

Property Value

string

Text

Default display text used when no resource key is supplied or resolved.
public string Text { get; }

Property Value

string