|
|
@@ -89,10 +89,6 @@ namespace System.Data.OleDb
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- int ICollection.Count {
|
|
|
- get { return list.Count; }
|
|
|
- }
|
|
|
-
|
|
|
bool IList.IsFixedSize {
|
|
|
get { return false; }
|
|
|
}
|
|
|
@@ -180,78 +176,6 @@ namespace System.Data.OleDb
|
|
|
return Add (new OleDbParameter (name, type, width, src_col));
|
|
|
}
|
|
|
|
|
|
- int IList.Add (object value)
|
|
|
- {
|
|
|
- if (!(value is IDataParameter))
|
|
|
- throw new InvalidCastException ();
|
|
|
-
|
|
|
- list.Add (value);
|
|
|
- return list.IndexOf (value);
|
|
|
- }
|
|
|
-
|
|
|
- void IList.Clear ()
|
|
|
- {
|
|
|
- list.Clear ();
|
|
|
- }
|
|
|
-
|
|
|
- bool IList.Contains (object value)
|
|
|
- {
|
|
|
- return list.Contains (value);
|
|
|
- }
|
|
|
-
|
|
|
- bool IDataParameterCollection.Contains (string value)
|
|
|
- {
|
|
|
- for (int i = 0; i < list.Count; i++) {
|
|
|
- IDataParameter parameter;
|
|
|
-
|
|
|
- parameter = (IDataParameter) list[i];
|
|
|
- if (parameter.ParameterName == value)
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- void ICollection.CopyTo (Array array, int index)
|
|
|
- {
|
|
|
- ((OleDbParameter[])(list.ToArray ())).CopyTo (array, index);
|
|
|
- }
|
|
|
-
|
|
|
- IEnumerator IEnumerable.GetEnumerator ()
|
|
|
- {
|
|
|
- return list.GetEnumerator ();
|
|
|
- }
|
|
|
-
|
|
|
- int IList.IndexOf (object value)
|
|
|
- {
|
|
|
- return list.IndexOf (value);
|
|
|
- }
|
|
|
-
|
|
|
- int IDataParameterCollection.IndexOf (string name)
|
|
|
- {
|
|
|
- return list.IndexOf (((IDataParameterCollection) this)[name]);
|
|
|
- }
|
|
|
-
|
|
|
- void IList.Insert (int index, object value)
|
|
|
- {
|
|
|
- list.Insert (index, value);
|
|
|
- }
|
|
|
-
|
|
|
- void IList.Remove (object value)
|
|
|
- {
|
|
|
- list.Remove (value);
|
|
|
- }
|
|
|
-
|
|
|
- void IList.RemoveAt (int index)
|
|
|
- {
|
|
|
- list.Remove ((object) list[index]);
|
|
|
- }
|
|
|
-
|
|
|
- void IDataParameterCollection.RemoveAt (string name)
|
|
|
- {
|
|
|
- list.Remove (((IDataParameterCollection) this)[name]);
|
|
|
- }
|
|
|
-
|
|
|
public void Clear() {
|
|
|
|
|
|
foreach (OleDbParameter p in list)
|