ListStackExtensions Class

Summary

Extension methods to use stack like methods for IList<T>.
Namespace
StrideToolkit.Collections
Base Types
  • object
graph BT Type-->Base0["object"] Type["ListStackExtensions"] class Type type-node

Syntax

public static class ListStackExtensions

Methods

Name Value Summary
Peek<T>(IList<T>) T
Gets the last item in the IList<T>.
static
Pop<T>(IList<T>) T
Removes and returns the object at the end of the IList<T>.
static
PopFront<T>(IList<T>) T
Removes and returns the object at the start of the IList<T>.
static
Push<T>(IList<T>, T) void
Adds an object to the end of the IList<T>.
static