Skip to content

ReplValueAliasAttribute

Maps an alias token to an injected option value for a parameter.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = true, Inherited = true)]
public sealed class ReplValueAliasAttribute : Attribute

Initializes a new instance of the ReplValueAliasAttribute class.

public ReplValueAliasAttribute(string token, string value)
  • token (string): Alias token, including prefix.
  • value (string): Injected option value.

Optional case-sensitivity override for this alias. Only an explicit assignment overrides the global parsing default; when unset, the getter returns the enum default and does not reflect the effective behavior — read CaseSensitivityOverride to distinguish unset from an explicit value.

public ReplCaseSensitivity CaseSensitivity { get; set; }

ReplCaseSensitivity

Explicit case-sensitivity override, or null to inherit the global default.

public ReplCaseSensitivity? CaseSensitivityOverride { get; }

ReplCaseSensitivity?

Alias token, including prefix.

public string Token { get; }

string

Injected option value.

public string Value { get; }

string