Skip to content

Class SArgument

Definition

Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll

Record implementation of an IArgument.

public record SArgument : StardewUI.Framework.Dom.IArgument, 
    IEquatable<StardewUI.Framework.Dom.SArgument>

Inheritance
Object ⇦ SArgument

Implements
IArgument, IEquatable<SArgument>

Members

Constructors

Name Description
SArgument(ArgumentExpressionType, string, ContextRedirect) Record implementation of an IArgument.
SArgument(Argument) Initializes a new SArgument from the data of a parsed argument.

Properties

Name Description
ContextRedirect Specifies the redirect to use for a context binding, if one was specified and if the Type is ContextBinding.
EqualityContract
Expression The argument value or binding path, not including punctuation such as quotes or prefixes.
Type The type of argument, indicating how it is to be evaluated in any method calls.

Details

Constructors

SArgument(ArgumentExpressionType, string, ContextRedirect)

Record implementation of an IArgument.

public SArgument(StardewUI.Framework.Grammar.ArgumentExpressionType Type, string Expression, StardewUI.Framework.Dom.ContextRedirect ContextRedirect);
Parameters

Type   ArgumentExpressionType
The type of argument, indicating how it is to be evaluated in any method calls.

Expression   string
The argument value or binding path, not including punctuation such as quotes or prefixes.

ContextRedirect   ContextRedirect
Specifies the redirect to use for a context binding, if one was specified and if the Type is ContextBinding.


SArgument(Argument)

Initializes a new SArgument from the data of a parsed argument.

public SArgument(StardewUI.Framework.Grammar.Argument argument);
Parameters

argument   Argument
The parsed argument.


Properties

ContextRedirect

Specifies the redirect to use for a context binding, if one was specified and if the Type is ContextBinding.

public StardewUI.Framework.Dom.ContextRedirect ContextRedirect { get; set; }
Property Value

ContextRedirect


EqualityContract

protected System.Type EqualityContract { get; }
Property Value

Type


Expression

The argument value or binding path, not including punctuation such as quotes or prefixes.

public string Expression { get; set; }
Property Value

string


Type

The type of argument, indicating how it is to be evaluated in any method calls.

public StardewUI.Framework.Grammar.ArgumentExpressionType Type { get; set; }
Property Value

ArgumentExpressionType