public bool Contains(object value) { if (!(value is TOuter)) { return(false); } return(_innerSet.Contains(_transformIn((TOuter)value)) || ExtendedList.Contains(value)); }
public bool Contains(TOuter item) { if (item == null) { return(false); } if (item.GetType().GetTypeInfo().IsClass) { return(item.Equals(Inner) || _extended.Contains(item)); } var inner = _toIn(item); return(inner.Equals(Inner) || _extended.Contains(item)); }
public bool Contains(TOuter item) { if (item == null) { return(false); } return(_extendedSet.Contains(item) || _innerSet.Contains(_transformIn(item))); }
public bool Contains(TOuter item) { return(_inner.Contains(GetIn(item))); }
public bool Contains(object value) { return(_inner.Contains(value)); }
/// <summary> /// Determines whether the <see cref="T:System.Collections.Generic.ICollection`1" /> contains a specific value. /// </summary> /// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1" />.</param> /// <returns> /// true if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, false. /// </returns> public bool Contains(T item) { return(set.Contains(item)); }