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

◆ TryGetNonEnumeratedCount< TSource >()

static bool System.Linq.Enumerable.TryGetNonEnumeratedCount< TSource > ( this IEnumerable< TSource > source,
out int count )
inlinestatic

Definition at line 4483 of file Enumerable.cs.

4484 {
4485 if (source == null)
4486 {
4487 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
4488 }
4490 {
4491 count = collection.Count;
4492 return true;
4493 }
4495 {
4496 int count2 = iIListProvider.GetCount(onlyIfCheap: true);
4497 if (count2 >= 0)
4498 {
4499 count = count2;
4500 return true;
4501 }
4502 }
4504 {
4506 return true;
4507 }
4508 count = 0;
4509 return false;
4510 }

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