Example #1
0
 /// <summary> Add a node to this mapping </summary>
 public void AddMappingNode(MappingNode node)
 {
     if (node != null)
     {
         childNodes.Add(node);
     }
     else
     {
         childNodes.Add(new MappingNode(null, null));
     }
 }
Example #2
0
 /// <summary> New mapping from a mappingnode array </summary>
 public Mapping(MappingNode[] nodes) :
     base("tag:yaml.org,2002:map", NodeType.Mapping)
 {
     foreach (MappingNode node in nodes)
         childNodes.Add(node);
 }
Example #3
0
 /// <summary> Add a node to this mapping </summary>
 public void AddMappingNode(MappingNode node)
 {
     if (node != null)
         childNodes.Add(node);
     else
         childNodes.Add(new MappingNode(null, null));
 }