예제 #1
0
        // Client
        static void Main(string[] args)
        {
            Exportacao exp = new ExportacaoEx();

            // injetando o objeto de implementação
            exp.Implementor = new ExportacaoPDF();
            exp.Exportar();
            Console.ReadLine();
        }
예제 #2
0
        //Client
        static void Main(string[] args)
        {
            var expor = new ExportacaoEx();

            //Injetando o objeto implementação
            expor.ExportacaoImpl = new ExportacaoDoc();
            expor.Exportar();

            Console.ReadLine();
        }