FastBindingListTFindCore Method

Searches for the index of the item that has the specified property descriptor with the specified value.
The base implementation performs a linear search on the items.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
protected virtual int FindCore(
	PropertyDescriptor property,
	Object key
)

Parameters

property  PropertyDescriptor
A PropertyDescriptor that specifies the property to search for.
key  Object
The value of property to match.

Return Value

Int32
The zero-based index of the item that matches the property descriptor and contains the specified value.

Remarks

  Note

FastBindingListT performs a linear search for this method, therefore has an O(n) cost, where n is the number of elements in the list.
SortableBindingListT is able to perform a binary search if property equals SortProperty, in which case the cost of this method is O(log n).

See Also