Exemplo n.º 1
0
        static void Main(string[] args)
        {
            AlphaNumbericCollector ncollector = new AlphaNumbericCollector();
            StringCollector        acollector = new StringCollector();
            ActionInput            input      = new ActionInput();

            input.op += ncollector.Numberic;
            input.op += acollector.String;
            input.Run();
        }
Exemplo n.º 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();
        }