When using .PrintDumpTable() on a list with a single item the format seems off:
It works perfectly when there’s more than one item (and it’s incredibly useful btw.).
Here is the sample to reproduce:
using System;
using ServiceStack;
using ServiceStack.Text;
namespace ServiceStackSupport
{
public class Customer
{
public string CustomerId { get; }
public string FirstName { get; }
public string LastName { get; }
public string Email { get; }
public Customer(string customerId, string firstName, string lastName, string email)
{
CustomerId = customerId;
FirstName = firstName;
LastName = lastName;
Email = email;
}
}
internal class Program
{
static void Main(string[] args)
{
var one = new Customer("One","Jim", "Bob", "jb@acme.com");
var list = new List<Customer>();
list.Add(one);
list.PrintDumpTable();
var two = new Customer("Two","Luc", "Skywalker", "ls@acme.com");
list.Add(two);
list.PrintDumpTable();
}
}
}