HashSetExtensions.First<T>
Extension Method in HashSetExtensions
Declaration
public static T First<T>(this HashSet<T> set, Predicate<T> predicate)Description
Returns the first element in the set that satisifies 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 satisifies the predicate. |