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

◆ Max< T >()

static T Terraria.Utils.Max< T > ( params T[] args)
inlinestatic
Type Constraints
T :IComparable 

Definition at line 454 of file Utils.cs.

455 {
456 T result = args[0];
457 for (int i = 1; i < args.Length; i++)
458 {
459 if (result.CompareTo(args[i]) < 0)
460 {
461 result = args[i];
462 }
463 }
464 return result;
465 }