Scalar Class
Represents a scalar token.
public class Scalar : Token- Inheritance
TokenScalar
Constructors
| Name | Description |
|---|---|
| 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.csScalar(string, ScalarStyle)
Scalar.csInitializes a new instance of the Scalar class.
public Scalar(string value, ScalarStyle style)Parameters
valuestring- The value.
styleScalarStyle- The style.
Scalar(string, ScalarStyle, Mark, Mark)
Scalar.csInitializes a new instance of the Scalar class.
public Scalar(string value, ScalarStyle style, Mark start, Mark end)Parameters
valuestring- The value.
styleScalarStyle- The style.
startMark- The start position of the token.
endMark- The end position of the token.
Properties
| Name | Description |
|---|---|
| Style | Gets the style. |
| Value | Gets the value. |