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.

public ReplCaseSensitivity? CaseSensitivity { get; set; }

ReplCaseSensitivity?

Alias token, including prefix.

public string Token { get; }

string

Injected option value.

public string Value { get; }

string