Example #1
0
        public void SetInt(Node node, int value)
        {
            IntNode n = node as IntNode;

            if (n == null)
            {
                throw new System.Exception("Wrong type");
            }
            n.Value = value;
        }
Example #2
0
        public int GetInt(Node node)
        {
            IntNode n = node as IntNode;

            if (n == null)
            {
                throw new System.Exception("Wrong type");
            }
            return(n.Value);
        }