Method TryLast
- Namespace
- Gamelogic.Extensions.Algorithms
- Assembly
- Gamelogic.Extensions.dll
TryLast<T>(IEnumerable<T>, out T)
[Version(3, 0, 0)]
public static bool TryLast<T>(this IEnumerable<T> source, out T last)
Parameters
source
IEnumerable<T>last
T
Returns
Type Parameters
T
TryLast<T>(IEnumerable<T>, Func<T, bool>, out T)
[Version(3, 0, 0)]
public static bool TryLast<T>(this IEnumerable<T> source, Func<T, bool> predicate, out T last)
Parameters
source
IEnumerable<T>predicate
Func<T, bool>last
T
Returns
Type Parameters
T