YLinqExtentionMethodsFindT(IEnumerableT, PredicateT) Method
|
Find an elemen from an enumerable object.
Namespace: Upsilon.Common.LibraryAssembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax public static T Find<T>(
this IEnumerable<T> list,
Predicate<T> predicate
)
Parameters
- list IEnumerableT
- The list of objects.
- predicate PredicateT
- The search criteria.
Type Parameters
- T
- The type of object in the list.
Return Value
TThe object found or
null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also