When learning to work with an MS SQL Server database, when trying to output data from the ID , Name , Points columns of the users table, the program for some reason outputs the data of the Points line with a large indent as shown in the figure:
Please explain to me why there is such a situation, and how to solve this problem.
Method code:
static void print() { DataClassesUserInfoDataContext Userinfo = new DataClassesUserInfoDataContext(); var custs = from c in Userinfo.users select new { Id = c.ID, Name = c.Name, Points = c.Points }; Console.WriteLine("ID - Name - Points"); foreach (var cust in custs) { Console.WriteLine("{0} - {1} - {2}", cust.Id, cust.Name, cust.Points); } Console.WriteLine("Нажмите любую клавишу для завершения работы..."); Console.ReadKey(); Environment.Exit(0); } 
Console.WriteLine("[{0}] - [{1}] - [{2}]", cust.Id, cust.Name, cust.Points);- Igor