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