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

◆ Max() [9/10]

static long System.Linq.Enumerable.Max ( this IEnumerable< long > source)
inlinestatic

Definition at line 5446 of file Enumerable.cs.

5447 {
5448 if (source == null)
5449 {
5450 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
5451 }
5453 if (!enumerator.MoveNext())
5454 {
5455 ThrowHelper.ThrowNoElementsException();
5456 }
5457 long num = enumerator.Current;
5458 while (enumerator.MoveNext())
5459 {
5460 long current = enumerator.Current;
5461 if (current > num)
5462 {
5463 num = current;
5464 }
5465 }
5466 return num;
5467 }

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