Introduction Format ADO.NET DataTables and other objects with this NuGet package. public static void OutputTable(DataTable table) { Console.WriteLine(table.GetStringRepresentation()); }