Summary
Adds an object to the end of the
IList<T>
.
- Namespace
- StrideToolkit
.Collections - Containing Type
- ListStackExtensions
Syntax
public static void Push<T>(this IList<T> stack, T item)
Type Parameters
Name | Description |
---|---|
T | The type of elements in the collection. |
Parameters
Name | Type | Description |
---|---|---|
stack | IList |
The IList<T> to use as a stack. |
item | T | The item to push on to the stack. The value can be for reference types. |
Return Value
Type | Description |
---|---|
void |