Exemple #1
0
 public bool Equals(OrderKey <T> other)
 {
     if (other == null)
     {
         return(false);
     }
     return((this == other) || ((this.Ascending == other.Ascending) && Xtnz.DeepEquals(this.KeySelector, other.KeySelector, ExpressionComparisonOptions.ParametersByIndex)));
 }
Exemple #2
0
        public override bool Equals(object other)
        {
            if (other == null)
            {
                return(false);
            }
            if (this == other)
            {
                return(true);
            }
            OrderKey <T> key = other as OrderKey <T>;

            return((key != null) && this.Equals(key));
        }
Exemple #3
0
 internal OrderKey(Function <T, TKey> keySelector, bool ascending) : base(OrderKey <T, TKey> .GetLambda(keySelector), ascending)
 {
     this.KeySelectorFunc = keySelector;
 }