Esempio n. 1
0
 /// <summary>
 /// Equalses the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(ItemWithIndex <T> other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(EqualityComparer <T> .Default.Equals(Item, other.Item) && Index == other.Index);
 }
Esempio n. 2
0
 /// <inheritdoc />
 public bool Equals(ItemWithIndex <T> other)
 {
     return(EqualityComparer <T> .Default.Equals(Item, other.Item));
 }