Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ First< TSource >() [2/2]

static TSource System.Linq.Enumerable.First< TSource > ( this IEnumerable< TSource > source,
Func< TSource, bool > predicate )
inlinestatic

Definition at line 4840 of file Enumerable.cs.

4841 {
4842 bool found;
4843 TSource result = source.TryGetFirst(predicate, out found);
4844 if (!found)
4845 {
4846 ThrowHelper.ThrowNoMatchException();
4847 }
4848 return result;
4849 }

References System.Linq.predicate, System.Linq.source, and System.Linq.ThrowHelper.ThrowNoMatchException().