Bridge.RefinedAbstraction.Operation C# (CSharp) Method

Operation() public method

public Operation ( ) : void
return void
        public override void Operation()
        {
            implementor.Operation();
        }

Usage Example

Example #1
0
        static void Main(string[] args)
        {
            //桥接模式
            Abstraction straction = new RefinedAbstraction();

            straction.SetImplementor(new ConcreteImplementorA());
            straction.Operation();

            straction.SetImplementor(new ConcreteImplementorB());
            straction.Operation();

            Console.WriteLine("----------------------------------------");

            HandsetBrand hb;

            hb = new HandsetBrandN();
            hb.SetHandsetSoft(new Handsetgame());
            hb.Run();
            hb.SetHandsetSoft(new HandsetAddressList());
            hb.Run();


            hb = new HandsetBrandM();
            hb.SetHandsetSoft(new Handsetgame());
            hb.Run();
            hb.SetHandsetSoft(new HandsetAddressList());
            hb.Run();

            Console.Read();
        }
All Usage Examples Of Bridge.RefinedAbstraction::Operation
RefinedAbstraction