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

◆ Max() [1/10]

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

Definition at line 5668 of file Enumerable.cs.

5669 {
5670 if (source == null)
5671 {
5672 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
5673 }
5674 using IEnumerator<decimal> enumerator = source.GetEnumerator();
5675 if (!enumerator.MoveNext())
5676 {
5677 ThrowHelper.ThrowNoElementsException();
5678 }
5679 decimal num = enumerator.Current;
5680 while (enumerator.MoveNext())
5681 {
5682 decimal current = enumerator.Current;
5683 if (current > num)
5684 {
5685 num = current;
5686 }
5687 }
5688 return num;
5689 }

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