YamlSequence Class
Represents the Yaml Sequence.
public class YamlSequence : YamlContainer, ICollection<YamlElement>, IEnumerable<YamlElement>, IList<YamlElement>, IEnumerable- Inheritance
YamlContainerYamlSequence- Implements
Constructors
| Name | Description |
|---|---|
| YamlSequence() | Initializes a new instance of this type. |
YamlSequence()
YamlSequence.csInitializes a new instance of this type.
public YamlSequence()Properties
| Name | Description |
|---|---|
| Anchor | Gets anchor. |
| Count | Gets count. |
| IsCanonical | Gets a value indicating whether is Canonical. |
| IsImplicit | Gets is Implicit. |
| IsReadOnly | Gets a value indicating whether is Read Only. |
| SequenceStart | Gets sequence Start. |
| Style | Gets style. |
| Tag | Gets tag. |
Anchor
YamlSequence.csCount
YamlSequence.csIsCanonical
YamlSequence.csIsImplicit
YamlSequence.csIsReadOnly
YamlSequence.csSequenceStart
YamlSequence.csStyle
YamlSequence.csIndexers
| Name | Description |
|---|---|
| this[int] | Gets or sets an element at the specified index. |
this[int]
YamlSequence.csGets or sets an element at the specified index.
public YamlElement this[int index] { get; set; }Methods
| Name | Description |
|---|---|
| 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.csClear()
YamlSequence.csRemoves all elements from the collection.
public void Clear()Contains(YamlElement)
YamlSequence.csDetermines whether a value exists.
public bool Contains(YamlElement item)CopyTo(YamlElement[], int)
YamlSequence.csCopies the elements to an array starting at the specified index.
public void CopyTo(YamlElement[] array, int arrayIndex)Parameters
arrayYamlElement[]arrayIndexint
DeepClone()
YamlSequence.csGetEnumerator()
YamlSequence.csIndexOf(YamlElement)
YamlSequence.csGets the zero-based index of the specified item.
public int IndexOf(YamlElement item)Insert(int, YamlElement)
YamlSequence.csInserts an item at the specified index.
public void Insert(int index, YamlElement item)Parameters
indexintitemYamlElement
Load(EventReader)
YamlSequence.csLoads data.
public static YamlSequence Load(EventReader eventReader)