Example #1
0
        static void Main(string[] args)
        {
            StringHelper  helper = new StringHelper();
            CountDeligate d1     = helper.GetCount;
            CountDeligate d2     = helper.GetCountSymbolA;

            string testString = "LAMP";

            Console.WriteLine("Общие колличество символов: {0}", TestDeligate(d1, testString));
            Console.WriteLine("Колличество символов A: {0}", TestDeligate(d2, testString));
            Console.ReadLine();
        }
Example #2
0
 static int TestDeligate(CountDeligate metod, string testString)
 {
     return(metod(testString));
 }