Operation() public abstract method

public abstract Operation ( ) : void
return void
コード例 #1
0
 public override void Operation()
 {
     if (comp != null)
     {
         comp.Operation();
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: yetisergey/Patterns
 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);
     }
 }
コード例 #4
0
 // 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");
 }