Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class Program
  2. {
  3. static void Main(string[] args)
  4. {
  5.  
  6. // store
  7. var wordLookup = new Dictionary<string, Delegate>();
  8. wordLookup.Add("Reservation",new Func<bool>(person_Said_Make_A_Reservation));
  9. wordLookup.Add("Current Time",new Func<bool>(person_Said_What_Time_Is_It));
  10. }
  11. public static bool person_Said_Make_A_Reservation()
  12. {
  13. Console.WriteLine("Where would you like your reservation?");
  14. return true;
  15. }
  16. public static bool person_Said_What_Time_Is_It()
  17. {
  18. Console.WriteLine("The current time is " + DateTime.Now.ToLongTimeString());
  19. return true;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement