public void SetInt(Node node, int value) { IntNode n = node as IntNode; if (n == null) { throw new System.Exception("Wrong type"); } n.Value = value; }
public int GetInt(Node node) { IntNode n = node as IntNode; if (n == null) { throw new System.Exception("Wrong type"); } return(n.Value); }