YamlStream Class

Represents the Yaml Stream.

Inheritance
YamlNode YamlStream
Implements

Constructors

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

YamlStream()

YamlStream.cs

Initializes a new instance of this type.

public YamlStream()

Properties

NameDescription
CountGets count.
IsReadOnlyGets a value indicating whether is Read Only.

Gets count.

public int Count { get; }

Property value

int

IsReadOnly

YamlStream.cs

Gets a value indicating whether is Read Only.

public bool IsReadOnly { get; }

Property value

bool

Indexers

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

this[int]

YamlStream.cs

Gets or sets an element at the specified index.

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

Parameters

index int

Property value

YamlDocument

Methods

NameDescription
Add(YamlDocument)Adds an item.
Clear()Removes all elements from the collection.
Contains(YamlDocument)Determines whether a value exists.
CopyTo(YamlDocument[], 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(YamlDocument)Gets the zero-based index of the specified item.
Insert(int, YamlDocument)Inserts an item at the specified index.
Load(EventReader)Loads data.
Load(EventReader, YamlSerializerOptions?)Loads data, honoring the anchor, alias and alias-expansion limits of options.
Load(TextReader)Loads data.
Load(TextReader, YamlSerializerOptions?)Loads data, honoring the hardening options in options.
Remove(YamlDocument)Removes an item.
RemoveAt(int)Removes at.
System.Collections.IEnumerable.GetEnumerator()

Add(YamlDocument)

YamlStream.cs

Adds an item.

public void Add(YamlDocument item)

Parameters

item YamlDocument

Removes all elements from the collection.

public void Clear()

Contains(YamlDocument)

YamlStream.cs

Determines whether a value exists.

public bool Contains(YamlDocument item)

Parameters

item YamlDocument

Returns

bool

CopyTo(YamlDocument[], int)

YamlStream.cs

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

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

Parameters

array YamlDocument[]
arrayIndex int

DeepClone()

YamlStream.cs

Creates a deep clone of the current value.

public override YamlNode DeepClone()

Returns

YamlNode

GetEnumerator()

YamlStream.cs

Gets enumerator.

public IEnumerator<YamlDocument> GetEnumerator()

IndexOf(YamlDocument)

YamlStream.cs

Gets the zero-based index of the specified item.

public int IndexOf(YamlDocument item)

Parameters

item YamlDocument

Returns

int

Insert(int, YamlDocument)

YamlStream.cs

Inserts an item at the specified index.

public void Insert(int index, YamlDocument item)

Parameters

index int
item YamlDocument

Load overloads

Load(EventReader)

YamlStream.cs

Loads data.

public static YamlStream Load(EventReader eventReader)
Parameters
eventReader EventReader
Returns

YamlStream

Load(EventReader, YamlSerializerOptions?)

YamlStream.cs

Loads data, honoring the anchor, alias and alias-expansion limits of options.

public static YamlStream Load(EventReader eventReader, YamlSerializerOptions? options)
Parameters
eventReader EventReader
The event reader.
options YamlSerializerOptions?
The options used to bound alias expansion. If null, YamlSerializerOptions.Default is used.
Returns

YamlStream

Load(TextReader)

YamlStream.cs

Loads data.

public static YamlStream Load(TextReader stream)
Parameters
stream TextReader
Returns

YamlStream

Load(TextReader, YamlSerializerOptions?)

YamlStream.cs

Loads data, honoring the hardening options in options.

public static YamlStream Load(TextReader stream, YamlSerializerOptions? options)
Parameters
stream TextReader
The reader over the YAML payload.
options YamlSerializerOptions?
The options used to bound nesting depth and alias expansion. If null, YamlSerializerOptions.Default is used.
Returns

YamlStream

Remarks

Remove(YamlDocument)

YamlStream.cs

Removes an item.

public bool Remove(YamlDocument item)

Parameters

item YamlDocument

Returns

bool

RemoveAt(int)

YamlStream.cs

Removes at.

public void RemoveAt(int index)

Parameters

index int

System.Collections.IEnumerable.GetEnumerator()

YamlStream.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.