TomlTableArray Class
A mutable TOML array of tables, written with [[header]] headers.
public sealed class TomlTableArray : TomlNode, ICollection<TomlTable>, IEnumerable<TomlTable>, IList<TomlTable>, IEnumerable- Inheritance
TomlNodeTomlTableArray- Implements
Constructors
| Name | Description |
|---|---|
| TomlTableArray() | Initializes a new empty array of tables. |
TomlTableArray()
TomlTableArray.csInitializes a new empty array of tables.
public TomlTableArray()Properties
| Name | Description |
|---|---|
| Count | Gets the number of tables. |
| System.Collections.Generic.ICollection<Meziantou.Framework.Toml.Nodes.TomlTable>.IsReadOnly |
Count
TomlTableArray.csSystem.Collections.Generic.ICollection<Meziantou.Framework.Toml.Nodes.TomlTable>.IsReadOnly
TomlTableArray.csIndexers
| Name | Description |
|---|---|
| this[int] | Gets or sets the table at an index. |
this[int]
TomlTableArray.csMethods
| Name | Description |
|---|---|
| Add(TomlTable) | Adds a table. |
| Clear() | Removes all the tables. |
| Contains(TomlTable) | Gets a value indicating whether the array contains a table. |
| CopyTo(TomlTable[], int) | Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. |
| DeepClone() | Gets a copy of the node and its descendants, without a parent. |
| GetEnumerator() | Gets an enumerator of the tables. |
| GetValueKind() | Gets the kind of the value. |
| IndexOf(TomlTable) | Gets the index of a table in the array, or -1. |
| Insert(int, TomlTable) | Inserts a table. |
| Remove(TomlTable) | Removes a table. |
| RemoveAt(int) | Removes the table at an index. |
| System.Collections.Generic.IEnumerable<Meziantou.Framework.Toml.Nodes.TomlTable>.GetEnumerator() | |
| System.Collections.IEnumerable.GetEnumerator() | |
| WriteTo(Utf8TomlWriter) | Writes the node with a writer: a table as key/value pairs and sub-tables where the writer expects a key, and as an inline table otherwise. |
Add(TomlTable)
TomlTableArray.csClear()
TomlTableArray.csRemoves all the tables.
public void Clear()Contains(TomlTable)
TomlTableArray.csCopyTo(TomlTable[], int)
TomlTableArray.csCopies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Parameters
arrayTomlTable[]- The one-dimensional
Arraythat is the destination of the elements copied fromICollection<T>. TheArraymust have zero-based indexing. arrayIndexint- The zero-based index in
arrayat which copying begins.
Exceptions
ArgumentNullExceptionarrayisnull.ArgumentOutOfRangeExceptionarrayIndexis less than 0.ArgumentException- The number of elements in the source
ICollection<T>is greater than the available space fromarrayIndexto the end of the destinationarray.
DeepClone()
TomlTableArray.csGetEnumerator()
TomlTableArray.csGetValueKind()
TomlTableArray.csIndexOf(TomlTable)
TomlTableArray.csInsert(int, TomlTable)
TomlTableArray.csRemove(TomlTable)
TomlTableArray.csRemoveAt(int)
TomlTableArray.csSystem.Collections.Generic.IEnumerable<Meziantou.Framework.Toml.Nodes.TomlTable>.GetEnumerator()
TomlTableArray.csSystem.Collections.IEnumerable.GetEnumerator()
TomlTableArray.csWriteTo(Utf8TomlWriter)
TomlTableArray.csWrites the node with a writer: a table as key/value pairs and sub-tables where the writer expects a key, and as an inline table otherwise.
public override void WriteTo(Utf8TomlWriter writer)Parameters
writerUtf8TomlWriter- The writer.