예제 #1
0
 public void PerformQuack()
 {
     if (quackBehavior == null)
     {
         Console.WriteLine("QuackBehavior is not set!");
         return;
     }
     quackBehavior.Quack();
 }
예제 #2
0
 /// <summary>
 /// Perform Quack as set by Concrete class
 /// </summary>
 public void PerformQuack()
 {
     if (QuackBehavior != null)
     {
         QuackBehavior.Quack();
     }
     else
     {
         Console.WriteLine(Resources.StrExPerformQuack);
     }
 }
예제 #3
0
 public virtual void performQuack()
 {
     _quackBehavior.Quack();
 }
예제 #4
0
 public void PerformQuack()
 {
     _quackBehavior.Quack();
 }
예제 #5
0
 public void Quack()
 {
     quackbehavior.Quack();
 }
예제 #6
0
 public void PerformQuack() => quackBehavior.Quack();
예제 #7
0
 public void PerfomrQuack()
 {
     quackBehavior.Quack();
 }
예제 #8
0
        /// <summary>
        ///  and method to perform the behavior. we just know how to quack and fly.
        ///  we don't know what type it is weather fly with wings or fly no way.
        /// </summary>

        public void Quack() => QuackBehavior.Quack();
 public void PerformQuack()
 {
     qb.Quack();
 }
예제 #10
0
 public void PerformQuack()
 {
     _quack.Quack();
 }
예제 #11
0
 public void SetQuackBehavior(IQuackBehavior quackBehavior)
 {
     _quackBehavior.Quack();
 }
 public void Quack()
 {
     m_QuackBehavior.Quack();
 }
예제 #13
0
 public void DoQuack()
 {
     _iQuackBehavior.Quack();
 }
예제 #14
0
 public string Quack()
 {
     return(_quackBehavior.Quack());
 }
예제 #15
0
 public virtual void Quack()
 {
     quackBehavior.Quack();
 }
예제 #16
0
파일: Duck.cs 프로젝트: chocoai/tc-notes
 public object PerformQuack()
 {
     return(quackBehavior.Quack());
 }
예제 #17
0
 public void performQuack()
 {
     quackBehavior.Quack();
 }
예제 #18
0
 public void DuckSound()
 {
     quackBehavior.Quack();
 }
예제 #19
0
 public void PeformaneQuack()
 {
     QuackBehavior.Quack();
 }
예제 #20
0
 public void PerformQuack() => _quackBehavoir.Quack();
예제 #21
0
 public void MakeSound()
 {
     _quackBehavior.Quack();
 }
예제 #22
0
파일: Duck.cs 프로젝트: Cl393/Practice
 public void PerFormQuack()
 {
     iQuackBehavior.Quack();
 }
 public void PerformFly()
 {
     quackBehavior.Quack();
 }
예제 #24
0
 public void Quack()
 {
     quackingBehaviorOfDuck.Quack();
 }
예제 #25
0
 public string PerformQuack()
 {
     return(_quackBehavior.Quack());
 }
예제 #26
0
 public void PerformQuack()
 {
     quackBehavior.Quack(view);
 }
예제 #27
0
 public void Quack()
 {
     _quackBehavior.Quack();
 }
예제 #28
0
 public virtual void DoQuack()
 {
     quacker.Quack();
 }
예제 #29
0
파일: Duck.cs 프로젝트: AnHoa/DesignPattern
 public void PerformQuack()
 {
     quackbehavior.Quack();
 }
예제 #30
0
 public void PerormQuack()
 {
     quackBehavior.Quack();
 }