//--------------------------------------------------------------------- internal BestHandTexas(HandRankTypeTexas rankType, ICollection <CardData> cards) { if (cards.Count != 5) { //throw new ArgumentException("Cards collection should contains exactly 5 elements", nameof(cards)); } this.Cards = cards.ToList(); this.RankType = rankType; }
//--------------------------------------------------------------------- public static int ParseHandRankTypeTexasToNum(HandRankTypeTexas rank) { return((int)rank); }
//--------------------------------------------------------------------- public static string ParseHandRankTypeTexasToStr(HandRankTypeTexas rank) { return(rank.ToString()); }