Class DataStructure
Contains static members for IDataStructure<T>.
Inheritance
System.Object
DataStructure
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public static class DataStructure : object
Methods
| Improve this Doc View SourceAdd<T>(DataStructure.IAddable<T>, T)
Adds a value to a data structure.
Declaration
public static void Add<T>(this DataStructure.IAddable<T> addable, T value)
Parameters
Type | Name | Description |
---|---|---|
DataStructure.IAddable<T> | addable | The data structure to add the value to. |
T | value | The value to add to the data structure. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |
Remove<T>(DataStructure.IRemovable<T>, T)
Removes a value from a data structure.
Declaration
public static void Remove<T>(this DataStructure.IRemovable<T> removable, T value)
Parameters
Type | Name | Description |
---|---|---|
DataStructure.IRemovable<T> | removable | The data structure to removable the value from. |
T | value | The value to remove from the data structure. |
Type Parameters
Name | Description |
---|---|
T | The type of values stored in this data structure. |