public int GetValue(string name) { Node node = GetNode(name); if (node == null) { return -1; } else { return node.Value; } }