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

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

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

Definition at line 3613 of file Enumerable.cs.

3614 {
3615 if (source == null)
3616 {
3617 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
3618 }
3620 {
3621 return collection.Count != 0;
3622 }
3624 {
3625 int count = iIListProvider.GetCount(onlyIfCheap: true);
3626 if (count >= 0)
3627 {
3628 return count != 0;
3629 }
3630 }
3632 {
3633 return collection2.Count != 0;
3634 }
3635 using IEnumerator<TSource> enumerator = source.GetEnumerator();
3636 return enumerator.MoveNext();
3637 }

References System.collection, System.Linq.count, System.Collections.Generic.Dictionary< TKey, TValue >.GetEnumerator(), System.Linq.source, and System.Linq.ThrowHelper.ThrowArgumentNullException().