Interface DataStructure.IAddable<T>
Property of a data structure (does it have a Add method).
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public interface IAddable<T>
Type Parameters
Name | Description |
---|---|
T | The type of value. |
Methods
| Improve this Doc View SourceTryAdd(T)
Tries to add a value to a data structure.
Declaration
(bool Success, Exception? Exception) TryAdd(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to add to the data structure. |
Returns
Type | Description |
---|---|
System.ValueTuple<System.Boolean, System.Nullable<Exception>> | True if the value was added or false if not. |