Пример #1
0
 /// <summary>
 /// Returns the union of the sequence with specified other sequence.
 /// </summary>
 /// <param name="otherSequence">The other sequence.</param>
 public OrderedSequence <T> Union(OrderedSequence <T> otherSequence)
 {
     return(new OrderedSequence <T>(_ft.Merge(otherSequence._ft)));
 }
Пример #2
0
 /// <summary>
 /// Intersects the sequence with <paramref name="otherSequence"/>.
 /// </summary>
 /// <param name="otherSequence">The other sequence.</param>
 public OrderedSequence <T> Intersect(OrderedSequence <T> otherSequence)
 {
     return(new OrderedSequence <T>(_ft.Intersect(otherSequence._ft)));
 }
Пример #3
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same
 /// type.
 /// </summary>
 /// <returns>
 /// <c>true</c> if the current object is equal to the <paramref name="other" /> parameter;
 /// otherwise, <c>false</c>.
 /// </returns>
 /// <param name="other">An object to compare with this object.</param>
 public bool Equals(OrderedSequence <T> other)
 {
     return(Equals(other._ft, _ft));
 }