YamlMapping Class
Represents the Yaml Mapping.
public class YamlMapping : YamlContainer, ICollection<KeyValuePair<YamlElement, YamlElement?>>, IDictionary<YamlElement, YamlElement?>, IEnumerable<KeyValuePair<YamlElement, YamlElement?>>, IList<KeyValuePair<YamlElement, YamlElement?>>, 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<YamlElement> 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<YamlElement?> Values { get; }Indexers
| Name | Description |
|---|---|
| this[YamlElement] | 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[YamlElement]
YamlMapping.csGets or sets an element at the specified index.
public YamlElement? this[YamlElement key] { get; set; }this[int]
YamlMapping.csGets or sets an element at the specified index.
public KeyValuePair<YamlElement, YamlElement?> this[int index] { get; set; }this[string]
YamlMapping.csGets or sets an element at the specified index.
public YamlElement? this[string key] { get; set; }Methods
Add(YamlElement, YamlElement?)
YamlMapping.csAdds an item.
public void Add(YamlElement key, YamlElement? value)Parameters
keyYamlElementvalueYamlElement?
Clear()
YamlMapping.csRemoves all elements from the collection.
public void Clear()DeepClone()
YamlMapping.csGetEnumerator()
YamlMapping.csGets enumerator.
public IEnumerator<KeyValuePair<YamlElement, YamlElement?>> GetEnumerator()IndexOf(KeyValuePair<YamlElement, YamlElement?>)
YamlMapping.csGets the zero-based index of the specified item.
public int IndexOf(KeyValuePair<YamlElement, YamlElement?> item)Insert(int, KeyValuePair<YamlElement, YamlElement?>)
YamlMapping.csInserts an item at the specified index.
public void Insert(int index, KeyValuePair<YamlElement, YamlElement?> item)Parameters
indexintitemKeyValuePair<YamlElement, YamlElement?>
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.Model.YamlElement,Meziantou.Framework.Yaml.Model.YamlElement>>.Add(KeyValuePair<YamlElement, YamlElement?>)
YamlMapping.csvoid ICollection<KeyValuePair<YamlElement, YamlElement>>.Add(KeyValuePair<YamlElement, YamlElement?> item)Parameters
No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Model.YamlElement,Meziantou.Framework.Yaml.Model.YamlElement>>.Contains(KeyValuePair<YamlElement, YamlElement?>)
YamlMapping.csbool ICollection<KeyValuePair<YamlElement, YamlElement>>.Contains(KeyValuePair<YamlElement, YamlElement?> item)No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Model.YamlElement,Meziantou.Framework.Yaml.Model.YamlElement>>.CopyTo(KeyValuePair<YamlElement, YamlElement?>[], int)
YamlMapping.csvoid ICollection<KeyValuePair<YamlElement, YamlElement>>.CopyTo(KeyValuePair<YamlElement, YamlElement?>[] array, int arrayIndex)Parameters
arrayKeyValuePair<YamlElement, YamlElement?>[]arrayIndexint
No documentation is available.
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Meziantou.Framework.Yaml.Model.YamlElement,Meziantou.Framework.Yaml.Model.YamlElement>>.Remove(KeyValuePair<YamlElement, YamlElement?>)
YamlMapping.csbool ICollection<KeyValuePair<YamlElement, YamlElement>>.Remove(KeyValuePair<YamlElement, YamlElement?> item)No documentation is available.
System.Collections.IEnumerable.GetEnumerator()
YamlMapping.csTryGetValue overloads
TryGetValue(YamlElement, YamlElement)
YamlMapping.csTries to get Value.
public bool TryGetValue(YamlElement key, out YamlElement value)TryGetValue(string, YamlElement)
YamlMapping.csTries to get Value.
public bool TryGetValue(string key, out YamlElement value)