Guest User

Untitled

a guest
Jul 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. static void print()
  2. {
  3. DataClassesUserInfoDataContext Userinfo = new DataClassesUserInfoDataContext();
  4. var custs = from c in Userinfo.users
  5. select new { Id = c.ID, Name = c.Name, Points = c.Points };
  6. Console.WriteLine("ID - Name - Points");
  7. foreach (var cust in custs)
  8. {
  9. Console.WriteLine("{0} - {1} - {2}", cust.Id, cust.Name, cust.Points);
  10. }
  11. Console.WriteLine("Нажмите любую клавишу для завершения работы...");
  12. Console.ReadKey();
  13. Environment.Exit(0);
  14. }
Add Comment
Please, Sign In to add comment