[]
Searches for the index of the item that has the given property descriptor.
public virtual int Find(PropertyDescriptor prop, object key)
| Type | Name | Description |
|---|---|---|
| PropertyDescriptor | prop | The PropertyDescriptor to search on. |
| object | key | The value of the property parameter to search for. |
| Type | Description |
|---|---|
| int | The index of the item that has the given PropertyDescriptor. |
Returns the index of the item in the list with the specified property name and value.
public int Find(string propertyName, object key)
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property name to search on. |
| object | key | The value of the property parameter to search for. |
| Type | Description |
|---|---|
| int | The index of the item in the list with the specified property name and value. |