Beispiel #1
0
        static void Main(string[] args)
        {
            AlphaNumbericCollector ncollector = new AlphaNumbericCollector();
            StringCollector        acollector = new StringCollector();
            DelegateInput          input      = new DelegateInput();

            input.GetCooperation += ncollector.Numberic;
            input.GetCooperation += acollector.String;
            input.Run();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            StringGetter           stringGetter           = new StringGetter();
            StringCollector        stringCollector        = new StringCollector();
            AlphaNumbericCollector alphaNumbericCollector = new AlphaNumbericCollector();

            stringGetter.StringGenerated += stringCollector.ProcessString;
            stringGetter.StringGenerated += alphaNumbericCollector.ProcessString;
            stringGetter.Run();

            Console.ReadKey();
        }