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 ConsoleApplication3
- {
- class Program
- {
- public int ex()
- {
- return 2;
- }
- public int ex1()
- {
- return 22;
- }
- public int ex2()
- {
- return 3;
- }
- public int ex3()
- {
- return 1;
- }
- static void Main(string[] args)
- {
- Program pr = new Program();
- int function = pr.ex();
- int function1 = pr.ex1();
- int function2 = pr.ex2();
- int function3 = pr.ex3();
- Dictionary<string, int> map = new Dictionary<string, int>();
- map.Add("ex", function);
- map.Add("ex1", function1);
- map.Add("ex2", function2);
- map.Add("ex3", function3);
- foreach (var maps in map)
- {
- Console.WriteLine(maps.Value);
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement