Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Events
- {
- class Program
- {
- static void Main(string[] args)
- {
- var events = new SortedDictionary<DateTime, string>();
- events[new DateTime(1998, 9, 4)] = "Google's birth date";
- events[new DateTime(2013, 11, 5)] = "SoftUni's birth date";
- events[new DateTime(1975, 4, 4)] = "Microsoft's birth date";
- events[new DateTime(2004, 2, 4)] = "Facebook's birth date";
- events[new DateTime(2013, 11, 5)] = "SoftUni was founded";
- foreach (KeyValuePair<DateTime, string> entry in events)
- {
- Console.WriteLine("{0:dd-MMM-yyyy}: {1}",
- entry.Key, entry.Value);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement