Exemplo n.º 1
0
 /// <summary>
 /// Determines whether [contains] [the specified item].
 /// </summary>
 /// <param name="item">The item.</param>
 /// <returns>
 ///     <c>true</c> if [contains] [the specified item]; otherwise, <c>false</c>.
 /// </returns>
 bool IList.Contains(object item) => (EventedList <T> .IsCompatibleObject(item) && Contains((T)item));
Exemplo n.º 2
0
        /// <summary>
        /// Inserts the specified index.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <param name="item">The item.</param>
        void IList.Insert(int index, object item)
        {
            EventedList <T> .VerifyValueType(item);

            Insert(index, (T)item);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Determines whether [contains] [the specified item].
 /// </summary>
 /// <param name="item">The item.</param>
 /// <returns>
 ///     <c>true</c> if [contains] [the specified item]; otherwise, <c>false</c>.
 /// </returns>
 bool IList.Contains(object item)
 {
     return(EventedList <T> .IsCompatibleObject(item) && this.Contains((T)item));
 }