Example #1
0
        static void Main(string[] args)
        {
            #region  factory
            Factory.IFactory factory    = new Factory.Factory();
            Factory.ICar     carFactory = factory.Create();
            carFactory.Move();
            Console.ReadLine();

            #endregion

            //#region simple factory
            //SimpleFactory.ICarFactory simpleFactory = new AnyFactory();
            //SimpleFactory.ICar simpleCarFactory = simpleFactory.Create("KIA");
            //simpleCarFactory.Move();
            //Console.ReadLine();

            //#endregion



            //#region nonfactory

            //NOFactory.ICar car = GetCar("fiat");
            //car.Move();
            //Console.ReadLine();

            //#endregion
        }