public void UsageMethod()
 {
     Abstracion ab = new RefinedAbstracion();
     ab.Implementor = new ConcreteImplementorA();
     ab.DoSomething();
     ab.Implementor = new ConcreteImplementorB();
     ab.DoSomething();
 }
예제 #2
0
        internal static void UsageMethod()
        {
            Abstracion ab = new RefinedAbstracion();

            ab.Implementor = new ConcreteImplementorA();
            ab.DoSomething();
            ab.Implementor = new ConcreteImplementorB();
            ab.DoSomething();
        }