/// <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)); } }
/// <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); }
/// <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)); }