while (rdr.Read())
{
Console.WriteLine(\"Product: {0,-35} Total: {1,2}\", rdr[\"ProductName\"], rdr[\"Total\"]);
}
What does {0,-35} mean in this c
it's for Align String with Spaces
To align string to the right or to the left use static method String.Format. To align string to the left (spaces on the right) use formatting patern with comma (,) followed by a negative number of characters: String.Format(„{0,–10}“, text). To right alignment use a positive number: {0,10}.
have a look at
http://www.csharp-examples.net/align-string-with-spaces/