Ejemplo n.º 1
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");
     }
 }
Ejemplo n.º 2
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));
     }
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
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)));
 }