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

◆ Min() [5/10]

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

Definition at line 6425 of file Enumerable.cs.

6426 {
6427 if (source == null)
6428 {
6429 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
6430 }
6431 using IEnumerator<float> enumerator = source.GetEnumerator();
6432 if (!enumerator.MoveNext())
6433 {
6434 ThrowHelper.ThrowNoElementsException();
6435 }
6436 float num = enumerator.Current;
6437 if (float.IsNaN(num))
6438 {
6439 return num;
6440 }
6441 while (enumerator.MoveNext())
6442 {
6443 float current = enumerator.Current;
6444 if (current < num)
6445 {
6446 num = current;
6447 }
6448 else if (float.IsNaN(current))
6449 {
6450 return current;
6451 }
6452 }
6453 return num;
6454 }

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