Method TryAdd
TryAdd(in T)
Try to add a value in the list.
Declaration
public bool TryAdd(in T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | A reference to the value to add. |
Returns
Type | Description |
---|---|
bool | when the value was added,
when the value was not added because the capacity was reached.
|