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

◆ Cast< TResult >()

static IEnumerable< TResult > System.Linq.Enumerable.Cast< TResult > ( this IEnumerable source)
inlinestatic

Definition at line 4319 of file Enumerable.cs.

4320 {
4321 if (source is IEnumerable<TResult> result)
4322 {
4323 return result;
4324 }
4325 if (source == null)
4326 {
4327 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
4328 }
4330 }
static IEnumerable< TResult > CastIterator< TResult >(IEnumerable source)

References System.Linq.Enumerable.CastIterator< TResult >(), System.Linq.source, and System.Linq.ThrowHelper.ThrowArgumentNullException().