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

◆ Min() [3/10]

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

Definition at line 6498 of file Enumerable.cs.

6499 {
6500 if (source == null)
6501 {
6502 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
6503 }
6504 using IEnumerator<double> enumerator = source.GetEnumerator();
6505 if (!enumerator.MoveNext())
6506 {
6507 ThrowHelper.ThrowNoElementsException();
6508 }
6509 double num = enumerator.Current;
6510 if (double.IsNaN(num))
6511 {
6512 return num;
6513 }
6514 while (enumerator.MoveNext())
6515 {
6516 double current = enumerator.Current;
6517 if (current < num)
6518 {
6519 num = current;
6520 }
6521 else if (double.IsNaN(current))
6522 {
6523 return current;
6524 }
6525 }
6526 return num;
6527 }

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