Method FromList
FromList(IList<T>)
Construct an InplaceArray from an IList (e.g. Array or List). The source must be non-empty and have at most 4 elements.
Declaration
public static InplaceArray<T> FromList(IList<T> elems)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<T> | elems |
Returns
| Type | Description |
|---|---|
| InplaceArray<T> |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |