Scalar Class

Represents a scalar token.

public class Scalar : Token
Inheritance
Token Scalar

Constructors

NameDescription
Scalar(string)Initializes a new instance of the Scalar class.
Scalar(string, ScalarStyle)Initializes a new instance of the Scalar class.
Scalar(string, ScalarStyle, Mark, Mark)Initializes a new instance of the Scalar class.

Scalar overloads

Scalar(string)

Scalar.cs

Initializes a new instance of the Scalar class.

public Scalar(string value)
Parameters
value string
The value.

Scalar(string, ScalarStyle)

Scalar.cs

Initializes a new instance of the Scalar class.

public Scalar(string value, ScalarStyle style)
Parameters
value string
The value.
style ScalarStyle
The style.

Scalar(string, ScalarStyle, Mark, Mark)

Scalar.cs

Initializes a new instance of the Scalar class.

public Scalar(string value, ScalarStyle style, Mark start, Mark end)
Parameters
value string
The value.
style ScalarStyle
The style.
start Mark
The start position of the token.
end Mark
The end position of the token.

Properties

NameDescription
StyleGets the style.
ValueGets the value.

Gets the style.

public ScalarStyle Style { get; }

Property value

ScalarStyle The style.

Gets the value.

public string Value { get; }

Property value

string The value.