예제 #1
0
 public void ClientCode(Creator creator)
 {
     Console.WriteLine("Client: I'm not aware of the creator's class," +
                       "but it still works.\n" + creator.SomeOperation());
     Console.ReadLine();
 }
예제 #2
0
파일: Program.cs 프로젝트: svotoq/Learning
        public void DoSomething(Creator creator)
        {
            Tea tea = creator.FactoryMethod();

            Console.WriteLine(tea.Name + " added in database");
        }