ReceivePayment() public méthode

public ReceivePayment ( decimal amount, string description ) : void
amount decimal
description string
Résultat void
Exemple #1
0
 public virtual void MakePaymentTo(Child child, decimal amount, string description)
 {
     if (!this.HasChild(child))
     {
         throw new TardisBankException("{0} is not a child of {1}", child.Name, this.Name);
     }
     child.ReceivePayment(amount, description);
 }
Exemple #2
0
 public virtual void MakePaymentTo(Child child, decimal amount, string description)
 {
     if (!this.HasChild(child))
     {
         throw new TardisBankException("{0} is not a child of {1}", child.Name, this.Name);
     }
     child.ReceivePayment(amount, description);
 }