Skip to content

Commit c0c7e1d

Browse files
authored
Fixes in ArrayList (#76)
1 parent 47436a7 commit c0c7e1d

File tree

1 file changed

+9
-9
lines changed
  • source/nanoFramework.CoreLibrary/System/Collections

1 file changed

+9
-9
lines changed

source/nanoFramework.CoreLibrary/System/Collections/ArrayList.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ public virtual Object Clone()
171171
/// <summary>
172172
/// Determines whether an element is in the <see cref="ArrayList"/>.
173173
/// </summary>
174-
/// <param name="item"></param>
174+
/// <param name="value"></param>
175175
/// <returns>The<see cref="Object"/> to locate in the <see cref="ArrayList"/>.The value can be <see langword="null"/>.</returns>
176-
public virtual bool Contains(Object item)
176+
public virtual bool Contains(Object value)
177177
{
178-
return Array.IndexOf(_items, item, 0, _size) >= 0;
178+
return Array.IndexOf(_items, value, 0, _size) >= 0;
179179
}
180180

181181
/// <summary>
@@ -191,10 +191,10 @@ public virtual void CopyTo(Array array)
191191
/// Copies the entire <see cref="ArrayList"/> to a compatible one-dimensional Array, starting at the specified index of the target array.
192192
/// </summary>
193193
/// <param name="array">The one-dimensional Array that is the destination of the elements copied from <see cref="ArrayList"/>. The Array must have zero-based indexing. </param>
194-
/// <param name="arrayIndex">The zero-based index in array at which copying begins. </param>
195-
public virtual void CopyTo(Array array, int arrayIndex)
194+
/// <param name="index">The zero-based index in array at which copying begins. </param>
195+
public virtual void CopyTo(Array array, int index)
196196
{
197-
Array.Copy(_items, 0, array, arrayIndex, _size);
197+
Array.Copy(_items, 0, array, index, _size);
198198
}
199199

200200
/// <summary>
@@ -252,10 +252,10 @@ public virtual int IndexOf(Object value, int startIndex, int count)
252252
/// <summary>
253253
/// Removes the first occurrence of a specific object from the <see cref="ArrayList"/>.
254254
/// </summary>
255-
/// <param name="obj">The <see cref="Object"/> to remove from the <see cref="ArrayList"/>. The value can be <see langword="null"/>.</param>
256-
public virtual void Remove(Object obj)
255+
/// <param name="value">The <see cref="Object"/> to remove from the <see cref="ArrayList"/>. The value can be <see langword="null"/>.</param>
256+
public virtual void Remove(Object value)
257257
{
258-
var index = Array.IndexOf(_items, obj, 0, _size);
258+
var index = Array.IndexOf(_items, value, 0, _size);
259259
if (index >= 0)
260260
{
261261
RemoveAt(index);

0 commit comments

Comments
 (0)