YamlSequence Class

Represents the Yaml Sequence.

Inheritance
YamlContainer YamlSequence
Implements

Constructors

NameDescription
YamlSequence()Initializes a new instance of this type.

YamlSequence()

YamlSequence.cs

Initializes a new instance of this type.

public YamlSequence()

Properties

NameDescription
AnchorGets anchor.
CountGets count.
IsCanonicalGets a value indicating whether is Canonical.
IsImplicitGets is Implicit.
IsReadOnlyGets a value indicating whether is Read Only.
SequenceStartGets sequence Start.
StyleGets style.
TagGets tag.

Gets anchor.

public override string? Anchor { get; set; }

Property value

string?

Gets count.

public int Count { get; }

Property value

int

IsCanonical

YamlSequence.cs

Gets a value indicating whether is Canonical.

public override bool IsCanonical { get; }

Property value

bool

IsImplicit

YamlSequence.cs

Gets is Implicit.

public override bool IsImplicit { get; set; }

Property value

bool

IsReadOnly

YamlSequence.cs

Gets a value indicating whether is Read Only.

public bool IsReadOnly { get; }

Property value

bool

SequenceStart

YamlSequence.cs

Gets sequence Start.

public SequenceStart SequenceStart { get; set; }

Property value

SequenceStart

Gets style.

public override YamlStyle Style { get; set; }

Property value

YamlStyle

Gets tag.

public override string? Tag { get; set; }

Property value

string?

Indexers

NameDescription
this[int]Gets or sets an element at the specified index.

Gets or sets an element at the specified index.

public YamlElement this[int index] { get; set; }

Parameters

index int

Property value

YamlElement

Methods

NameDescription
Add(YamlElement)Adds an item.
Clear()Removes all elements from the collection.
Contains(YamlElement)Determines whether a value exists.
CopyTo(YamlElement[], int)Copies the elements to an array starting at the specified index.
DeepClone()Creates a deep clone of the current value.
GetEnumerator()Gets enumerator.
IndexOf(YamlElement)Gets the zero-based index of the specified item.
Insert(int, YamlElement)Inserts an item at the specified index.
Load(EventReader)Loads data.
Remove(YamlElement)Removes an item.
RemoveAt(int)Removes at.
System.Collections.IEnumerable.GetEnumerator()

Add(YamlElement)

YamlSequence.cs

Adds an item.

public void Add(YamlElement item)

Parameters

item YamlElement

Removes all elements from the collection.

public void Clear()

Contains(YamlElement)

YamlSequence.cs

Determines whether a value exists.

public bool Contains(YamlElement item)

Parameters

item YamlElement

Returns

bool

CopyTo(YamlElement[], int)

YamlSequence.cs

Copies the elements to an array starting at the specified index.

public void CopyTo(YamlElement[] array, int arrayIndex)

Parameters

array YamlElement[]
arrayIndex int

DeepClone()

YamlSequence.cs

Creates a deep clone of the current value.

public override YamlNode DeepClone()

Returns

YamlNode

GetEnumerator()

YamlSequence.cs

Gets enumerator.

public IEnumerator<YamlElement> GetEnumerator()

IndexOf(YamlElement)

YamlSequence.cs

Gets the zero-based index of the specified item.

public int IndexOf(YamlElement item)

Parameters

item YamlElement

Returns

int

Insert(int, YamlElement)

YamlSequence.cs

Inserts an item at the specified index.

public void Insert(int index, YamlElement item)

Parameters

index int
item YamlElement

Load(EventReader)

YamlSequence.cs

Loads data.

public static YamlSequence Load(EventReader eventReader)

Parameters

eventReader EventReader

Returns

YamlSequence

Remove(YamlElement)

YamlSequence.cs

Removes an item.

public bool Remove(YamlElement item)

Parameters

item YamlElement

Returns

bool

RemoveAt(int)

YamlSequence.cs

Removes at.

public void RemoveAt(int index)

Parameters

index int

System.Collections.IEnumerable.GetEnumerator()

YamlSequence.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.