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

◆ Min() [1/10]

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

Definition at line 6571 of file Enumerable.cs.

6572 {
6573 if (source == null)
6574 {
6575 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
6576 }
6577 using IEnumerator<decimal> enumerator = source.GetEnumerator();
6578 if (!enumerator.MoveNext())
6579 {
6580 ThrowHelper.ThrowNoElementsException();
6581 }
6582 decimal num = enumerator.Current;
6583 while (enumerator.MoveNext())
6584 {
6585 decimal current = enumerator.Current;
6586 if (current < num)
6587 {
6588 num = current;
6589 }
6590 }
6591 return num;
6592 }

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