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

◆ Min() [8/10]

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

Definition at line 6340 of file Enumerable.cs.

6341 {
6342 if (source == null)
6343 {
6344 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
6345 }
6346 int? result = null;
6348 while (enumerator.MoveNext())
6349 {
6350 result = enumerator.Current;
6351 if (!result.HasValue)
6352 {
6353 continue;
6354 }
6355 int num = result.GetValueOrDefault();
6356 while (enumerator.MoveNext())
6357 {
6358 int? current = enumerator.Current;
6359 int valueOrDefault = current.GetValueOrDefault();
6360 if (current.HasValue && valueOrDefault < num)
6361 {
6362 num = valueOrDefault;
6363 result = current;
6364 }
6365 }
6366 return result;
6367 }
6368 return result;
6369 }

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