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

◆ Max() [7/10]

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

Definition at line 5374 of file Enumerable.cs.

5375 {
5376 if (source == null)
5377 {
5378 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
5379 }
5381 if (!enumerator.MoveNext())
5382 {
5383 ThrowHelper.ThrowNoElementsException();
5384 }
5385 int num = enumerator.Current;
5386 while (enumerator.MoveNext())
5387 {
5388 int current = enumerator.Current;
5389 if (current > num)
5390 {
5391 num = current;
5392 }
5393 }
5394 return num;
5395 }

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