public Beneficiary(long accountNumber, string name, string bankName, double maxLimit, TransactionTypeChoice transactionType) { this.accountNumber = accountNumber; this.name = name; this.bankName = bankName; this.maxLimit = maxLimit; this.transactionType = transactionType; }
public void ShowAllBenificiary(TransactionTypeChoice choice) { foreach (var i in list) { if (i.transactionType == choice) { Console.WriteLine(i.name + " " + i.accountNumber + " " + i.bankName + " " + i.maxLimit + " " + i.transactionType); } } }