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.
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.
Property Value
EqualityContract
Property Value
Expression
The argument value or binding path, not including punctuation such as quotes or prefixes.
Property Value
Type
The type of argument, indicating how it is to be evaluated in any method calls.