[]
Searches for a T that matches the specified type TTarget,
and returns the first occurrence within the entire collection.
public TTarget Find<TTarget>() where TTarget : T
Public Function Find(Of TTarget As T)() As TTarget
| Type | Description |
|---|---|
| TTarget | The first |
| Name | Description |
|---|---|
| TTarget |
Searches for a T that matches the specified type TTarget and matches the conditions defined by the specified predicate,
and returns the first occurrence within the entire collection.
public TTarget Find<TTarget>(Predicate<TTarget> match) where TTarget : T
Public Function Find(Of TTarget As T)(match As Predicate(Of TTarget)) As TTarget
| Type | Name | Description |
|---|---|---|
| Predicate<TTarget> | match | The Predicate<T> delegate that defines the conditions of the |
| Type | Description |
|---|---|
| TTarget | The first |
| Name | Description |
|---|---|
| TTarget |
| Type | Condition |
|---|---|
| ArgumentNullException | match is null. |