Example #1
0
        public override string dump(string prefix)
        {
            string        pfx1    = prefix + PrettyPrinter.Spacer;
            string        pfx2    = pfx1 + PrettyPrinter.Spacer;
            string        pfx3    = pfx2 + PrettyPrinter.Spacer + PrettyPrinter.Spacer;
            StringBuilder builder = new StringBuilder();

            builder.AppendLine("[CRowSet]" + PrettyPrinter.PrintRawData(this));
            builder.AppendLine(pfx1 + descriptor.dump(pfx1).TrimEnd('\r', '\n'));
            builder.AppendLine(pfx1 + "Rows:");
            foreach (var item in rows)
            {
                PrettyPrinter.Print(builder, pfx2, item);
            }
            return(builder.ToString());
        }
Example #2
0
        public override string dump(string prefix)
        {
            string        pfx1    = prefix + PrettyPrinter.Spacer;
            string        pfx2    = pfx1 + PrettyPrinter.Spacer;
            StringBuilder builder = new StringBuilder();

            builder.AppendLine("[CIndexedRowSet]" + PrettyPrinter.PrintRawData(this));
            builder.AppendLine(pfx1 + "index: " + columnName);
            builder.AppendLine(pfx1 + descriptor.dump(pfx1).TrimEnd('\r', '\n'));
            builder.AppendLine(pfx1 + "Rows:");
            foreach (var item in rows)
            {
                PrettyPrinter.Print(builder, pfx2 + "Key:", item.Key);
                PrettyPrinter.Print(builder, pfx2, item.Value);
            }
            return(builder.ToString());
        }