Exemplo n.º 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));
     }
 }
Exemplo n.º 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);
 }
Exemplo n.º 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));
 }