ListStackExtensions.

Push<T>(IList<T>, T) Method

Summary

Adds an object to the end of the IList<T>.

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<T> 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