Class ValueList
- Namespace
- Badeend.ValueCollections
- Assembly
- Badeend.ValueCollections.dll
Initialization methods for ValueList<T>.
public static class ValueList
- Inheritance
-
ValueList
- Inherited Members
Methods
CreateBuilderWithCapacity<T>(int)
Create a new empty ValueList<T>.Builder with the specified
initial minimumCapacity
. This builder can then be used to
efficiently construct an immutable ValueList<T>.
[Pure]
public static ValueList<T>.Builder CreateBuilderWithCapacity<T>(int minimumCapacity)
Parameters
minimumCapacity
int
Returns
Type Parameters
T
Exceptions
- ArgumentOutOfRangeException
minimumCapacity
is less than 0.
CreateBuilder<T>()
Create a new empty ValueList<T>.Builder. This builder can then be used to efficiently construct an immutable ValueList<T>.
[Pure]
public static ValueList<T>.Builder CreateBuilder<T>()
Returns
Type Parameters
T
CreateBuilder<T>(params ReadOnlySpan<T>)
Create a new ValueList<T>.Builder with the provided
items
as its initial content.
[Pure]
public static ValueList<T>.Builder CreateBuilder<T>(params ReadOnlySpan<T> items)
Parameters
items
ReadOnlySpan<T>
Returns
Type Parameters
T
Create<T>(params ReadOnlySpan<T>)
Copy the items
into a new ValueList<T>.
[Pure]
public static ValueList<T> Create<T>(params ReadOnlySpan<T> items)
Parameters
items
ReadOnlySpan<T>
Returns
- ValueList<T>
Type Parameters
T