예제 #1
0
 public void Add(RihaNode addNode)
 {
     if (type == ValueType.number)
     {
         float add      = addNode.GetNodeType() == ValueType.number ? RihaNode.GetNumeric(addNode.GetValue()) : 0;
         float newValue = RihaNode.GetNumeric(value) + add;
         value = newValue.ToString();
     }
     else if (type == ValueType.text)
     {
         value += addNode.GetString();
     }
     else if (type == ValueType.array)
     {
         ((List <RihaNode>)value).Add(addNode);
     }
 }