Ejemplo n.º 1
0
 /// <summary>
 /// Removes the specified item from this filtered collection.
 /// </summary>
 /// <param name="value">
 /// The item to remove.
 /// </param>
 /// <returns>
 /// <see langword="true"/> if the item was removed, otherwise <see langword="false"/>.
 /// </returns>
 void System.Collections.IList.Remove(object value)
 {
     ArgumentHelper.AssertNotNull(value, "value");
     ExceptionHelper.ThrowIf(!(value is TItem), "WrongType", value.GetType().FullName, typeof(TItem).FullName);
     Remove((TItem)value);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines whether this collection contains the specified value.
 /// </summary>
 /// <param name="value">
 /// The value to check for.
 /// </param>
 /// <returns>
 /// <see langword="true"/> if <paramref name="value"/> is contained in this collection, otherwise
 /// <see langword="false"/>.
 /// </returns>
 bool System.Collections.IList.Contains(object value)
 {
     ArgumentHelper.AssertNotNull(value, "value");
     ExceptionHelper.ThrowIf(!(value is TItem), "WrongType", value.GetType().FullName, typeof(TItem).FullName);
     return(Contains((TItem)value));
 }