Exemplo n.º 1
0
        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)));
            });
        }
Exemplo n.º 2
0
 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));
     });
 }
Exemplo n.º 3
0
        // 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);
        }