Skip to content

StackableListPopResults

Eric Lowry edited this page Aug 7, 2024 · 2 revisions

Namespace: Lowry.Utils.CodeExtensions

public readonly struct StackableListPopResults<T>

💡General Information

Used to indicate when a StackableList.Pop(T) method call resulted in the item being:

  • Removed from the top, and the top spot taken by another item.
  • Removed from the top, but the list is now empty.
  • Removed from anywhere but the top of the list.
  • Not found in the list.

📄Properties

item

public T item { get {...} }

Used to store the new item at the top of the StackableList if the item that was StackableList.Pop(T)ed was previously at the top.

result

public StackableList<T>.PopResult result{ get {...} }

Used to store the type of result a StackableList.Pop(T) action resulted in in the form of a StackableList.PopResult.

📄Constructor

public StackableListPopResults (T item_, StackableList<T>.PopResult result_) {...}

📄Methods

ToString()

public string ToString () {...}

Returns: a human-readable string representing the object.

Clone this wiki locally