YamlMapping Class
Represents the Yaml Mapping.
public class YamlMapping : YamlContainer, ICollection<KeyValuePair<YamlNode, YamlNode?>>, IDictionary<YamlNode, YamlNode?>, IEnumerable<KeyValuePair<YamlNode, YamlNode?>>, IList<KeyValuePair<YamlNode, YamlNode?>>, IEnumerable- Inheritance
YamlContainerYamlMapping- Implements
Constructors
| Name | Description |
|---|---|
| YamlMapping() | Initializes a new instance of this type. |
YamlMapping()
YamlMapping.csInitializes a new instance of this type.
public YamlMapping()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. |
| Keys | Gets keys. |
| MappingStart | Gets mapping Start. |
| Style | Gets style. |
| Tag | Gets tag. |
| Values | Gets values. |
Anchor
YamlMapping.csCount
YamlMapping.csIsCanonical
YamlMapping.csIsImplicit
YamlMapping.csIsReadOnly
YamlMapping.csKeys
YamlMapping.csGets keys.
public ICollection<YamlNode> Keys { get; }Property value
Remarks
The collection is read-only; use the mapping members to add or remove entries.
MappingStart
YamlMapping.csStyle
YamlMapping.csValues
YamlMapping.csGets values.
public ICollection<YamlNode?> Values { get; }Property value
Remarks
The values are listed in the same order as YamlMapping.Keys. Like YamlMapping.Keys, the collection is a read-only view of the mapping: it shows its changes, and its enumerator throws when the mapping changes.
Indexers
| Name | Description |
|---|---|
| this[YamlNode] | Gets or sets an element at the specified index. |
| this[int] | Gets or sets an element at the specified index. |
| this[string] | Gets or sets an element at the specified index. |
Item overloads
this[YamlNode]
YamlMapping.csthis[int]
YamlMapping.csGets or sets an element at the specified index.
public KeyValuePair<YamlNode, YamlNode?> this[int index] { get; set; }this[string]
YamlMapping.csMethods
Add(YamlNode, YamlNode?)
YamlMapping.csClear()
YamlMapping.csRemoves all elements from the collection.
public void Clear()DeepClone()
YamlMapping.csGetEnumerator()
YamlMapping.csGets enumerator.
public IEnumerator<KeyValuePair<YamlNode, YamlNode?>> GetEnumerator()IndexOf(KeyValuePair<YamlNode, YamlNode?>)
YamlMapping.csGets the zero-based index of the specified item.
public int IndexOf(KeyValuePair<YamlNode, YamlNode?> item)Insert(int, KeyValuePair<YamlNode, YamlNode?>)
YamlMapping.csInserts an item at the specified index.
public void Insert(int index, KeyValuePair<YamlNode, YamlNode?> item)Parameters
indexintitemKeyValuePair<YamlNode, YamlNode?>
Load(EventReader)
YamlMapping.csLoads data.
public static YamlMapping Load(EventReader eventReader)RemoveAt(int)
YamlMapping.csSystem.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Nodes.YamlNode,Meziantou.Framework.Yaml.Nodes.YamlNode>>.Add(KeyValuePair<YamlNode, YamlNode?>)
YamlMapping.csvoid ICollection<KeyValuePair<YamlNode, YamlNode>>.Add(KeyValuePair<YamlNode, YamlNode?> item)Parameters
No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Nodes.YamlNode,Meziantou.Framework.Yaml.Nodes.YamlNode>>.Contains(KeyValuePair<YamlNode, YamlNode?>)
YamlMapping.csbool ICollection<KeyValuePair<YamlNode, YamlNode>>.Contains(KeyValuePair<YamlNode, YamlNode?> item)No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Nodes.YamlNode,Meziantou.Framework.Yaml.Nodes.YamlNode>>.CopyTo(KeyValuePair<YamlNode, YamlNode?>[], int)
YamlMapping.csvoid ICollection<KeyValuePair<YamlNode, YamlNode>>.CopyTo(KeyValuePair<YamlNode, YamlNode?>[] array, int arrayIndex)Parameters
arrayKeyValuePair<YamlNode, YamlNode?>[]arrayIndexint
No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Nodes.YamlNode,Meziantou.Framework.Yaml.Nodes.YamlNode>>.Remove(KeyValuePair<YamlNode, YamlNode?>)
YamlMapping.csbool ICollection<KeyValuePair<YamlNode, YamlNode>>.Remove(KeyValuePair<YamlNode, YamlNode?> item)No documentation is available.