Beispiel #1
0
        static void InternalLog(ref StringBuilder sb, ValTree inValue, int depth)
        {
            if (inValue.GetKey().Length > 0 || inValue.GetValue().Length > 0)
            {
                for (int i = 0; i < depth; i++)
                {
                    sb.Append("\t");
                }

                sb.AppendLine(inValue.GetKey() + " " + inValue.GetValue());
            }

            for (int i = 0; i < inValue.Size(); i++)
            {
                var child = inValue.GetIndex(i);
                InternalLog(ref sb, child, depth + 1);
            }
        }