示例#1
0
 void IList.Remove(object value)
 {
     if (Class183 <T> .smethod_1(value))
     {
         this.Remove((T)value);
     }
 }
示例#2
0
        int IList.Add(object value)
        {
            Class183 <T> .smethod_0(value);

            this.Add((T)value);
            return(this.Count - 1);
        }
示例#3
0
 private static void smethod_0(object object_1)
 {
     if (!Class183 <T> .smethod_1(object_1))
     {
         throw new ArgumentException("The value '{0}' is not of type '{1}' and cannot be used in this generic collection.".smethod_1(CultureInfo.InvariantCulture, object_1, typeof(T)), "value");
     }
 }
示例#4
0
        void IList.Insert(int index, object value)
        {
            if (this.icollection_0 != null)
            {
                throw new InvalidOperationException("Wrapped ICollection<T> does not support Insert.");
            }
            Class183 <T> .smethod_0(value);

            this.ilist_0.Insert(index, (T)value);
        }
示例#5
0
 int IList.IndexOf(object value)
 {
     if (this.icollection_0 != null)
     {
         throw new InvalidOperationException("Wrapped ICollection<T> does not support IndexOf.");
     }
     if (Class183 <T> .smethod_1(value))
     {
         return(this.ilist_0.IndexOf((T)value));
     }
     return(-1);
 }
示例#6
0
        object IList.this[int index]
        {
            get
            {
                if (this.icollection_0 != null)
                {
                    throw new InvalidOperationException("Wrapped ICollection<T> does not support indexer.");
                }
                return(this.ilist_0[index]);
            }
            set
            {
                if (this.icollection_0 != null)
                {
                    throw new InvalidOperationException("Wrapped ICollection<T> does not support indexer.");
                }
                Class183 <T> .smethod_0(value);

                this.ilist_0[index] = (T)value;
            }
        }
示例#7
0
 bool IList.Contains(object value)
 {
     return(Class183 <T> .smethod_1(value) && this.Contains((T)value));
 }