Skip to main content

Contains Method

Tests if the collection contains the specified item.

Definition​

Namespace: Avalonia.Collections
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool Contains(
T item
)

Parameters​

  T
The item.

Return Value​

Boolean
True if the collection contains the item; otherwise false.

Implements​

ICollection(T).Contains(T)

See Also​

Reference​

AvaloniaList(T) Class
Avalonia.Collections Namespace