我正在学习 ADO.NET,现在我正在尝试了解 SqlDataReader。我正在尝试通过使用本教程进行学习,现在在理解此处提到的以下代码部分时遇到了一些困难:
while (rdr.Read())
{
// get the results of each column
string contact = (string)rdr["ContactName"];
string company = (string)rdr["CompanyName"];
string city = (string)rdr["City"];
// print out the results
Console.Write("{0,-25}", contact);
Console.Write("{0,-20}", city);
Console.Write("{0,-25}", company);
Console.WriteLine();
}
我想了解“{0, -25}”的含义