Пример #1
0
 public virtual double GetAveragePrizeWorth()
 {
     return(Prizes.OfType <LuckyDipBankCheckPrize>().Average(e => e.Worth));
 }
Пример #2
0
 public virtual int GetMaxPrizeWorth()
 {
     return(Prizes.OfType <LuckyDipBankCheckPrize>().Max(e => e.Worth));
 }