Method Contains | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Contains(Stack, T, IEqualityComparer)

Check if the stack object contains the value to find.

public static bool Contains<T>(this Stack<T> stack, T valueToFind, IEqualityComparer<T> comparer = null)

Parameters

stack Stack

The stack object.

valueToFind T

Value to find.

comparer IEqualityComparer

The comparison object.

Returns

bool

true If the value was found.false otherwise.

Type Parameters

T

The stack object type.