SortedSetExtensions.First<T>
Extension Method in SortedSetExtensions
Declaration
public static T First<T>(this SortedSet<T> set, Predicate<T> predicate)Description
Returns the first element in the set that satisfies a predicate.
Type Parameters
| T | The type of the elements in the set. |
Parameters
| set | The set to get the element from. |
| predicate | The predicate to use. |
Returns
| T | The first element in the set that satisfies the predicate, or default(T) if no item satisfies the predicate. |