SequenceStart Class

Represents a sequence start event.

public sealed class SequenceStart : NodeEvent
Inheritance
NodeEvent SequenceStart

Constructors

NameDescription
SequenceStart()Initializes a new instance of the SequenceStart class.
SequenceStart(string?, string?, bool, YamlStyle)Initializes a new instance of the SequenceStart class.
SequenceStart(string?, string?, bool, YamlStyle, Mark, Mark)Initializes a new instance of the SequenceStart class.

SequenceStart overloads

SequenceStart()

SequenceStart.cs

Initializes a new instance of the SequenceStart class.

public SequenceStart()

SequenceStart(string?, string?, bool, YamlStyle)

SequenceStart.cs

Initializes a new instance of the SequenceStart class.

public SequenceStart(string? anchor, string? tag, bool isImplicit, YamlStyle style)
Parameters
anchor string?
tag string?
isImplicit bool
style YamlStyle

SequenceStart(string?, string?, bool, YamlStyle, Mark, Mark)

SequenceStart.cs

Initializes a new instance of the SequenceStart class.

public SequenceStart(string? anchor, string? tag, bool isImplicit, YamlStyle style, Mark start, Mark end)
Parameters
anchor string?
The anchor.
tag string?
The tag.
isImplicit bool
if set to true [is implicit].
style YamlStyle
The style.
start Mark
The start position of the event.
end Mark
The end position of the event.

Properties

NameDescription
IsCanonicalGets a value indicating whether this instance is canonical.
IsImplicitGets a value indicating whether this instance is implicit.
NestingIncreaseGets a value indicating the variation of depth caused by this event. The value can be either -1, 0 or 1. For start events, it will be 1, for end events, it will be -1, and for the remaining events, it will be 0.
StyleGets the style.

IsCanonical

SequenceStart.cs

Gets a value indicating whether this instance is canonical.

public override bool IsCanonical { get; }

Property value

bool

Gets a value indicating whether this instance is implicit.

public bool IsImplicit { get; }

Property value

bool true if this instance is implicit; otherwise, false.

NestingIncrease

SequenceStart.cs

Gets a value indicating the variation of depth caused by this event. The value can be either -1, 0 or 1. For start events, it will be 1, for end events, it will be -1, and for the remaining events, it will be 0.

public override int NestingIncrease { get; }

Property value

int

Gets the style.

public YamlStyle Style { get; }

Property value

YamlStyle The style.

Methods

NameDescription
ToString()Returns a String that represents the current Object.

Returns a String that represents the current Object.

public override string ToString()

Returns

string A String that represents the current Object.