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))); }
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)); }
internal OrderKey(Function <T, TKey> keySelector, bool ascending) : base(OrderKey <T, TKey> .GetLambda(keySelector), ascending) { this.KeySelectorFunc = keySelector; }