示例#1
0
        int IList.Add(object value)
        {
            PSDataCollection <T> .VerifyValueType(value);

            int count = this.data.Count;

            this.InternalAdd(Guid.Empty, (T)value);
            this.RaiseEvents(Guid.Empty, count);
            return(count);
        }
示例#2
0
        object IList.this[int index]
        {
            get
            {
                return(this[index]);
            }
            set
            {
                PSDataCollection <T> .VerifyValueType(value);

                this[index] = (T)value;
            }
        }
示例#3
0
        void IList.Remove(object value)
        {
            PSDataCollection <T> .VerifyValueType(value);

            this.Remove((T)value);
        }
示例#4
0
        void IList.Insert(int index, object value)
        {
            PSDataCollection <T> .VerifyValueType(value);

            this.Insert(index, (T)value);
        }
示例#5
0
        int IList.IndexOf(object value)
        {
            PSDataCollection <T> .VerifyValueType(value);

            return(this.IndexOf((T)value));
        }
示例#6
0
        bool IList.Contains(object value)
        {
            PSDataCollection <T> .VerifyValueType(value);

            return(this.Contains((T)value));
        }