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

◆ AddDays()

DateOnly System.DateOnly.AddDays ( int value)
inline

Definition at line 67 of file DateOnly.cs.

68 {
69 int num = _dayNumber + value;
70 if ((uint)num > 3652058u)
71 {
72 ThrowOutOfRange();
73 }
74 return new DateOnly(num);
75 static void ThrowOutOfRange()
76 {
77 throw new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_AddValue);
78 }
79 }
readonly int _dayNumber
Definition DateOnly.cs:9
DateOnly(int dayNumber)
Definition DateOnly.cs:43

References System.DateOnly.DateOnly(), System.DateOnly._dayNumber, System.SR.ArgumentOutOfRange_AddValue, and System.value.