Exemplo n.º 1
0
 public IEnumerable <IEnumerable <Card> > GetFourOfAKinds()
 {
     return(_getFourOfAKinds ?? (_getFourOfAKinds = CardsByRank.Where(group => group.Count() == 4)));
 }
Exemplo n.º 2
0
 public IEnumerable <IEnumerable <Card> > GetPairs()
 {
     return(_getPairs ?? (_getPairs = CardsByRank.Where(group => group.Count() == 2)));
 }