void System.Collections.IList.Remove(object value) { if (CollectionWrapper <T> .IsCompatibleObject(value)) { this.Remove((T)value); } }
private static void VerifyValueType(object value) { if (!CollectionWrapper <T> .IsCompatibleObject(value)) { throw new ArgumentException("The value '{0}' is not of type '{1}' and cannot be used in this generic collection.".FormatWith(CultureInfo.InvariantCulture, new object[] { value, typeof(T) }), "value"); } }
// Token: 0x06000E69 RID: 3689 RVA: 0x00010F82 File Offset: 0x0000F182 void IList.Remove(object value) { if (CollectionWrapper <T> .IsCompatibleObject(value)) { this.Remove((T)((object)value)); } }
private static void VerifyValueType(object value) { if (!CollectionWrapper <T> .IsCompatibleObject(value)) { throw new ArgumentException(StringUtils.FormatWith("The value '{0}' is not of type '{1}' and cannot be used in this generic collection.", (IFormatProvider)CultureInfo.InvariantCulture, value, (object)typeof(T)), "value"); } }
bool System.Collections.IList.Contains(object value) { if (!CollectionWrapper <T> .IsCompatibleObject(value)) { return(false); } return(this.Contains((T)value)); }
void IList.Remove(object value) { if (!CollectionWrapper <T> .IsCompatibleObject(value)) { return; } this.Remove((T)value); }
int IList.IndexOf(object value) { if (this._genericCollection != null) { throw new InvalidOperationException("Wrapped ICollection<T> does not support IndexOf."); } return(CollectionWrapper <T> .IsCompatibleObject(value) ? this._list.IndexOf((object)(T)value) : -1); }
bool IList.Contains(object value) { if (CollectionWrapper <T> .IsCompatibleObject(value)) { return(this.Contains((T)value)); } else { return(false); } }
int System.Collections.IList.IndexOf(object value) { if (this._genericCollection != null) { throw new Exception("Wrapped ICollection<T> does not support IndexOf."); } if (!CollectionWrapper <T> .IsCompatibleObject(value)) { return(-1); } return(this._list.IndexOf((T)value)); }
// Token: 0x06000E64 RID: 3684 RVA: 0x00010EC1 File Offset: 0x0000F0C1 bool IList.Contains(object value) { return(CollectionWrapper <T> .IsCompatibleObject(value) && this.Contains((T)((object)value))); }
bool IList.Contains(object value) => (CollectionWrapper <T> .IsCompatibleObject(value) && this.Contains((T)value));