Operation() публичный абстрактный Метод

public abstract Operation ( ) : void
Результат void
Пример #1
0
 public override void Operation()
 {
     if (comp != null)
     {
         comp.Operation();
     }
 }
Пример #2
0
 public override void Operation()
 {
     if (component != null)
     {
         component.Operation();
     }
 }
Пример #3
0
 public override string Operation()
 {
     if (_component != null)
     {
         return(_component.Operation());
     }
     else
     {
         return(string.Empty);
     }
 }
 // The client code works with all objects using the Component interface.
 // This way it can stay independent of the concrete classes of
 // components it works with.
 public void ClientCode(Component component)
 {
     Console.WriteLine("RESULT: " + component.Operation());
 }
Пример #5
0
 public override void Operation()
 {
     component?.Operation();
 }
Пример #6
0
 public override void Operation()
 {
     Component.Operation();
 }
Пример #7
0
 public void ClientCode(Component component)
 {
     System.Console.WriteLine(" result " + component.Operation());
 }
Пример #8
0
 public override void Operation()
 {
     component.Operation();
     Console.Write(" with decorated behavior and decorated state");
 }