[]
Initializes a new instance of the StructList<T> class that is empty.
public StructList()
Initializes a new instance of the StructList<T> class that is empty and has the specified initial capacity.
public StructList(int capacity)
| Type | Name | Description |
|---|---|---|
| int | capacity | The number of elements that the new list can initially store. |
Initializes a new instance of the StructList<T> class that contains elements copied from the specified array.
public StructList(T[] array, int arrayIndex, int count)
| Type | Name | Description |
|---|---|---|
| T[] | array | The array whose elements should be added to the StructList<T>. |
| int | arrayIndex | The zero-based index of the first element in the |
| int | count | The number of elements to add. |
Initializes a new instance of the StructList<T> class that contains elements copied from the specified collection.
public StructList(IEnumerable<T> collection)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | collection | The collection whose elements are copied to the new list. |