FastBindingListTFind(PropertyDescriptor, Object) Method

Searches for the index of the item that has the specified property descriptor with the specified value.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public int Find(
	PropertyDescriptor property,
	Object key
)

Parameters

property  PropertyDescriptor
The PropertyDescriptor to search on.
key  Object
The value of the property parameter to search for.

Return Value

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

Implements

IBindingListFind(PropertyDescriptor, Object)

Remarks

To customize the behavior override the FindCore method in a derived class.

  Note

property cannot be . To search by the whole value of T rather than by one of its properties use the IndexOf method.

Exceptions

ArgumentNullExceptionproperty is .
ArgumentExceptionproperty is not a property of T.

See Also