예제 #1
0
 // Token: 0x060016D9 RID: 5849 RVA: 0x0006C037 File Offset: 0x0006A237
 void IList.tmethod_4092(object obje_0)
 {
     if (Class_501 <T> .IsCompatibleObject(obje_0))
     {
         this.Remove((T)((object)obje_0));
     }
 }
예제 #2
0
 // Token: 0x060016DF RID: 5855 RVA: 0x0006C0DE File Offset: 0x0006A2DE
 private static void lmethod_4098(object obje_0)
 {
     if (!Class_501 <T> .IsCompatibleObject(obje_0))
     {
         throw new ArgumentException("The value '{0}' is not of type '{1}' and cannot be used in this generic collection.".FormatWith(CultureInfo.InvariantCulture, obje_0, typeof(T)), "value");
     }
 }
예제 #3
0
        // Token: 0x060016D3 RID: 5843 RVA: 0x0006BF48 File Offset: 0x0006A148
        int IList.dmethod_4086(object obje_0)
        {
            Class_501 <T> .VerifyValueType(obje_0);

            this.Add((T)((object)obje_0));
            return(this.Count - 1);
        }
예제 #4
0
        // Token: 0x060016D7 RID: 5847 RVA: 0x0006BFDE File Offset: 0x0006A1DE
        void IList.smethod_4090(int sayıInt_0, object obje_0)
        {
            if (this._genericCollection != null)
            {
                throw new InvalidOperationException("Wrapped ICollection<T> does not support Insert.");
            }
            Class_501 <T> .VerifyValueType(obje_0);

            this._list.Insert(sayıInt_0, (T)((object)obje_0));
        }
예제 #5
0
 // Token: 0x060016D5 RID: 5845 RVA: 0x0006BF7F File Offset: 0x0006A17F
 int IList.lmethod_4088(object obje_0)
 {
     if (this._genericCollection != null)
     {
         throw new InvalidOperationException("Wrapped ICollection<T> does not support IndexOf.");
     }
     if (Class_501 <T> .IsCompatibleObject(obje_0))
     {
         return(this._list.IndexOf((T)((object)obje_0)));
     }
     return(-1);
 }
예제 #6
0
        // Token: 0x170004CD RID: 1229
        object IList.this[int sayıInt_0]
        {
            get
            {
                if (this._genericCollection != null)
                {
                    throw new InvalidOperationException("Wrapped ICollection<T> does not support indexer.");
                }
                return(this._list[sayıInt_0]);
            }
            set
            {
                if (this._genericCollection != null)
                {
                    throw new InvalidOperationException("Wrapped ICollection<T> does not support indexer.");
                }
                Class_501 <T> .VerifyValueType(value);

                this._list[sayıInt_0] = (T)((object)value);
            }
        }
예제 #7
0
 // Token: 0x060016D4 RID: 5844 RVA: 0x0006BF64 File Offset: 0x0006A164
 bool IList.kmethod_4087(object obje_0)
 {
     return(Class_501 <T> .IsCompatibleObject(obje_0) && this.Contains((T)((object)obje_0)));
 }