public void GetValues(List <ValueTuple <string, string> > vals) { if (_children != null) { for (int i = 0, icnt = _children.Length; i < icnt; ++i) { _children[i].GetValues(vals); } } else { string valStr = ValueExtractor.ValueToString(_value, _kind); vals.Add((_fieldName, valStr)); } }