ListStackExtensions.

PopFront<T>(IList<T>) Method

Summary

Removes and returns the object at the start of the IList<T>.

Syntax

public static T PopFront<T>(this IList<T> stack)

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.

Return Value

Type Description
T The object removed from the start of the IList<T>.