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

◆ operator-() [2/6]

static TimeSpan System.TimeSpan.operator- ( TimeSpan t)
inlinestatic

Definition at line 496 of file TimeSpan.cs.

497 {
498 if (t._ticks == MinValue._ticks)
499 {
500 throw new OverflowException(SR.Overflow_NegateTwosCompNum);
501 }
502 return new TimeSpan(-t._ticks);
503 }
static readonly TimeSpan MinValue
Definition TimeSpan.cs:25
TimeSpan(long ticks)
Definition TimeSpan.cs:78

References System.TimeSpan.TimeSpan(), System.TimeSpan._ticks, System.TimeSpan.MinValue, and System.SR.Overflow_NegateTwosCompNum.