Advertisement
vencinachev

SortedDicr

Sep 8th, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             SortedDictionary<string, int> pb = new SortedDictionary<string, int>();
  4.             pb.Add("Pesho", 123);
  5.             pb.Add("Zoro", 345);
  6.             pb.Add("Anka", 343);
  7.             foreach(var p in pb)
  8.             {
  9.                 Console.WriteLine($"{p.Key}: {p.Value}");
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement