public void Sort(SortUsing method) { bool countAceAsHigh = (method == SortUsing.AceHigh); cards.Sort(delegate(Card c1, Card c2) { return(c1.GetFaceValue(countAceAsHigh).CompareTo(c2.GetFaceValue(countAceAsHigh))); }); }
public void Sort(SortUsing method) { bool countAceAsHigh = (method == SortUsing.AceHigh); cards.Sort(delegate(Card c1, Card c2) { return c1.GetFaceValue(countAceAsHigh).CompareTo(c2.GetFaceValue(countAceAsHigh)); }); }
// Same if behavior is same (not appearance) public override int GetHashCode() { int hashCode = HashCombine(_palasoWritingSystemDefinition.Language.GetHashCode(), SortUsing.GetHashCode()); if (UsesCustomSortRules) { hashCode = HashCombine(hashCode, CustomSortRules.GetHashCode()); } return(hashCode); }