Esempio n. 1
0
 protected override void AddNode(INode node, bool named, Action <INode> modify)
 {
     if (node is JsonNode)
     {
         Element.Insert(((JsonNode)node).Element);
     }
     else
     {
         new JsonNode(named && !NodeType.IsArray() ?
                      Element.AddMember(node.Name, GetElementType(node.NodeType)) :
                      Element.AddArrayElement(GetElementType(node.NodeType)), this).Configure(modify);
     }
 }