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.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
protected virtual int FindCore(
PropertyDescriptor property,
Object key
)
Protected Overridable Function FindCore (
property As PropertyDescriptor,
key As Object
) As Integer
protected:
virtual int FindCore(
PropertyDescriptor^ property,
Object^ key
)
abstract FindCore :
property : PropertyDescriptor *
key : Object -> int
override FindCore :
property : PropertyDescriptor *
key : Object -> int
- property PropertyDescriptor
- A PropertyDescriptor that specifies the property to search for.
- key Object
- The value of property to match.
Int32The zero-based index of the item that matches the property descriptor and contains the specified value.
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).