-//
+
// System.Array.cs
//
// Authors:
}
// IList interface
- public object this [int index] {
+ object IList.this [int index] {
get {
return GetValueImpl (index);
}
}
bool IList.Contains (object value) {
+ if (this.Rank > 1)
+ throw new RankException ("Only single dimension arrays are supported.");
+
int length = this.Length;
for (int i = 0; i < length; i++) {
if (value.Equals (this.GetValueImpl (i)))
internal extern static Array CreateInstanceImpl(Type elementType, int[] lengths, int [] bounds);
// Properties
- public virtual int Count {
+ int ICollection.Count {
get {
return Length;
}