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

◆ Single< TSource >() [1/2]

static TSource System.Linq.Enumerable.Single< TSource > ( this IEnumerable< TSource > source)
inlinestatic

Definition at line 7507 of file Enumerable.cs.

7508 {
7509 bool found;
7510 TSource result = source.TryGetSingle(out found);
7511 if (!found)
7512 {
7513 ThrowHelper.ThrowNoElementsException();
7514 }
7515 return result;
7516 }

References System.Linq.source, and System.Linq.ThrowHelper.ThrowNoElementsException().