dotnetanywhere-wb /corlib/System.Collections/ArrayList.cs

Language C# Lines 215
MD5 Hash 8ecbba2cdae9b02830c89b5e670eaf4a Estimated Cost $4,204 (why?)
Repository https://bitbucket.org/cosi2/dotnetanywhere-wb.git View Raw File
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
using System;
using System.Collections.Generic;

#if LOCALTEST
using System.Collections;
namespace System_.Collections {
#else
namespace System.Collections {
#endif
	public class ArrayList : IList, ICollection, IEnumerable, ICloneable {

		private List<object> list;

		public ArrayList() {
			this.list = new List<object>();
		}

		public ArrayList(ICollection c) {
			if (c == null) {
				throw new ArgumentNullException();
			}
			this.list = new List<object>(c.Count);
			foreach (object o in c) {
				this.list.Add(o);
			}
		}

		public ArrayList(int capacity) {
			this.list = new List<object>(capacity);
		}

		public virtual int Add(object value) {
			return this.list.Add(value);
		}

		public virtual void AddRange(ICollection c) {
			if (c == null) {
				throw new ArgumentNullException();
			}
			foreach (object o in c) {
				this.list.Add(o);
			}
		}

		public virtual void Clear() {
			this.list.Clear();
		}

		public virtual object Clone() {
			throw new NotImplementedException();
		}

		public virtual bool Contains(object item) {
			return this.list.Contains(item);
		}

		public virtual void CopyTo(Array array) {
			this.list.CopyTo(array, 0);
		}

		public virtual void CopyTo(Array array, int arrayIndex) {
			throw new NotImplementedException();
		}

		public virtual void CopyTo(int index, Array array, int arrayIndex, int count){
			throw new NotImplementedException();
		}

		public virtual IEnumerator GetEnumerator() {
			return this.list.GetEnumerator();
		}

		public virtual IEnumerable GetEnumerator(int index, int count) {
			throw new NotImplementedException();
		}

		public virtual ArrayList GetRange(int index, int count) {
			throw new NotImplementedException();
		}

		public virtual int IndexOf(object value) {
			return this.list.IndexOf(value);
		}

		public virtual int IndexOf(object value, int startIndex) {
			return this.list.IndexOf(value, startIndex);
		}

		public virtual int IndexOf(object value, int startIndex, int count) {
			return this.list.IndexOf(value, startIndex, count);
		}

		public virtual void Insert(int index, object value) {
			this.list.Insert(index, value);
		}

		public virtual void InsertRange(int index, ICollection c) {
			List<object> insert = new List<object>(c.Count);
			foreach (object o in c) {
				insert.Add(o);
			}
			this.list.InsertRange(index, insert);
		}

		public virtual int LastIndexOf(object value) {
			throw new NotImplementedException();
		}

		public virtual int LastIndexOf(object value, int startIndex) {
			throw new NotImplementedException();
		}

		public virtual int LastIndexOf(object value, int startIndex, int count) {
			throw new NotImplementedException();
		}

		public virtual void Remove(object obj) {
			this.list.Remove(obj);
		}

		public virtual void RemoveAt(int index) {
			this.list.RemoveAt(index);
		}

		public virtual void RemoveRange(int index, int count) {
			throw new NotImplementedException();
		}

		public virtual void Reverse() {
			throw new NotImplementedException();
		}

		public virtual void Reverse(int index, int count) {
			throw new NotImplementedException();
		}

		public virtual void SetRange(int index, ICollection c) {
			throw new NotImplementedException();
		}

		public virtual void Sort() {
			throw new NotImplementedException();
		}

		public virtual void Sort(IComparer comparer) {
			throw new NotImplementedException();
		}

		public virtual void Sort(int index, int count, IComparer comparer) {
			throw new NotImplementedException();
		}

		public virtual object[] ToArray() {
			throw new NotImplementedException();
		}

		public virtual Array ToArray(Type type) {
			throw new NotImplementedException();
		}

		public virtual void TromToSize() {
			throw new NotImplementedException();
		}

		public virtual int Capacity {
			get {
				return this.list.Capacity;
			}
			set {
				this.list.Capacity = value;
			}
		}

		public virtual int Count {
			get {
				return this.list.Count;
			}
		}

		public virtual bool IsFixedSize {
			get {
				return false;
			}
		}

		public virtual bool IsReadOnly {
			get {
				return false;
			}
		}

		public virtual bool IsSynchronized {
			get {
				return false;
			}
		}

		public virtual object this[int index] {
			get {
				return this.list[index];
			}
			set {
				this.list[index] = value;
			}
		}

		public virtual object SyncRoot {
			get {
				return this;
			}
		}

	}
}
Back to Top