Example #1
0
        /// <summary>
        /// Adds the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        int IList.Add(object item)
        {
            EventedList <T> .VerifyValueType(item);

            Add((T)item);
            return(_size - 1);
        }
Example #2
0
        /// <summary>
        /// Adds the specified item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns></returns>
        int IList.Add(object item)
        {
            EventedList <T> .VerifyValueType(item);

            this.Add((T)item);
            return(this.Count - 1);
        }
Example #3
0
        /// <summary>
        /// Gets or sets the <see cref="System.Object"/> at the specified index.
        /// </summary>
        /// <value></value>
        object IList.this[int index]
        {
            get
            {
                return(this[index]);
            }
            set
            {
                EventedList <T> .VerifyValueType(value);

                this[index] = (T)value;
            }
        }
Example #4
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);
        }