Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- // store
- var wordLookup = new Dictionary<string, Delegate>();
- wordLookup.Add("Reservation",new Func<bool>(person_Said_Make_A_Reservation));
- wordLookup.Add("Current Time",new Func<bool>(person_Said_What_Time_Is_It));
- }
- public static bool person_Said_Make_A_Reservation()
- {
- Console.WriteLine("Where would you like your reservation?");
- return true;
- }
- public static bool person_Said_What_Time_Is_It()
- {
- Console.WriteLine("The current time is " + DateTime.Now.ToLongTimeString());
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement