Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Collections.​IList

Assembly: System.Runtime

Represents a non-generic collection of objects that can be individually accessed by index.

Properties

public bool
IsFixedSize
Gets a value indicating whether the <see cref="T:System.Collections.IList" /> has a fixed size.
public bool
IsReadOnly
Gets a value indicating whether the <see cref="T:System.Collections.IList" /> is read-only.
public object
Item

Methods

public int
Add​(object value)
value The object to add to the <see cref="T:System.Collections.IList" /> .
Returns The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.
Adds an item to the <see cref="T:System.Collections.IList" /> .
public void
Clear​()
Removes all items from the <see cref="T:System.Collections.IList" /> .
public bool
Contains​(object value)
value The object to locate in the <see cref="T:System.Collections.IList" /> .
Returns <see langword="true" /> if the <see cref="T:System.Object" /> is found in the <see cref="T:System.Collections.IList" /> ; otherwise, <see langword="false" /> .
Determines whether the <see cref="T:System.Collections.IList" /> contains a specific value.
public int
IndexOf​(object value)
value The object to locate in the <see cref="T:System.Collections.IList" /> .
Returns The index of <paramref name="value" /> if found in the list; otherwise, -1.
Determines the index of a specific item in the <see cref="T:System.Collections.IList" /> .
public void
Insert​(int index, object value)
index The zero-based index at which <paramref name="value" /> should be inserted.
value The object to insert into the <see cref="T:System.Collections.IList" /> .
Inserts an item to the <see cref="T:System.Collections.IList" /> at the specified index.
public void
Remove​(object value)
value The object to remove from the <see cref="T:System.Collections.IList" /> .
Removes the first occurrence of a specific object from the <see cref="T:System.Collections.IList" /> .
public void
RemoveAt​(int index)
index The zero-based index of the item to remove.
Removes the <see cref="T:System.Collections.IList" /> item at the specified index.