while (rdr.Read()) { Console.WriteLine(\"Product: {0,-35} Total: {1,2}\", rdr[\"ProductName\"], rdr[\"Total\"]); }
What does {0,-35} mean in this c
Those {} brackets are for string formatting purpose. example, your case rdr["ProductName"] have given a format specifier {0,-35} ... which will be left aligned with space padded to the right.
{}