示例#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));
示例#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);
        }
示例#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));
 }