#endregion
#region Not generic interface implementations
- void ICollection.CopyTo (Array array, int arrayIndex)
+ void ICollection.CopyTo (Array array, int index)
{
- ((ICollection)list).CopyTo (array, arrayIndex);
+ ((ICollection)list).CopyTo (array, index);
}
IEnumerator IEnumerable.GetEnumerator ()
return (IEnumerator) list.GetEnumerator ();
}
- int IList.Add (object item)
+ int IList.Add (object value)
{
int idx = list.Count;
- InsertItem (idx, ConvertItem (item));
+ InsertItem (idx, ConvertItem (value));
return idx;
}
- bool IList.Contains (object item)
+ bool IList.Contains (object value)
{
- if (IsValidItem (item))
- return list.Contains ((T) item);
+ if (IsValidItem (value))
+ return list.Contains ((T) value);
return false;
}
- int IList.IndexOf (object item)
+ int IList.IndexOf (object value)
{
- if (IsValidItem (item))
- return list.IndexOf ((T) item);
+ if (IsValidItem (value))
+ return list.IndexOf ((T) value);
return -1;
}
- void IList.Insert (int index, object item)
+ void IList.Insert (int index, object value)
{
- InsertItem (index, ConvertItem (item));
+ InsertItem (index, ConvertItem (value));
}
- void IList.Remove (object item)
+ void IList.Remove (object value)
{
CheckWritable (list);
- int idx = IndexOf (ConvertItem (item));
+ int idx = IndexOf (ConvertItem (value));
RemoveItem (idx);
}
}
#region Not generic interface implementations
- void ICollection.CopyTo (Array array, int arrayIndex)
+ void ICollection.CopyTo (Array array, int index)
{
- ((ICollection)list).CopyTo (array, arrayIndex);
+ ((ICollection)list).CopyTo (array, index);
}
IEnumerator IEnumerable.GetEnumerator ()
return ((IEnumerable) list).GetEnumerator ();
}
- int IList.Add (object item)
+ int IList.Add (object value)
{
throw new NotSupportedException ();
}
throw new NotSupportedException ();
}
- bool IList.Contains (object item)
+ bool IList.Contains (object value)
{
- if (Collection <T>.IsValidItem (item))
- return list.Contains ((T) item);
+ if (Collection <T>.IsValidItem (value))
+ return list.Contains ((T) value);
return false;
}
- int IList.IndexOf (object item)
+ int IList.IndexOf (object value)
{
- if (Collection <T>.IsValidItem (item))
- return list.IndexOf ((T) item);
+ if (Collection <T>.IsValidItem (value))
+ return list.IndexOf ((T) value);
return -1;
}
- void IList.Insert (int index, object item)
+ void IList.Insert (int index, object value)
{
throw new NotSupportedException ();
}
- void IList.Remove (object item)
+ void IList.Remove (object value)
{
throw new NotSupportedException ();
}