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

◆ CheckYearMonthRange()

static void System.Globalization.PersianCalendar.CheckYearMonthRange ( int year,
int month,
int era )
inlinestaticpackage

Definition at line 89 of file PersianCalendar.cs.

90 {
91 CheckYearRange(year, era);
92 if (year == 9378 && month > 10)
93 {
94 throw new ArgumentOutOfRangeException("month", month, SR.Format(SR.ArgumentOutOfRange_Range, 1, 10));
95 }
96 if (month < 1 || month > 12)
97 {
98 ThrowHelper.ThrowArgumentOutOfRange_Month(month);
99 }
100 }
static void CheckYearRange(int year, int era)

References System.SR.ArgumentOutOfRange_Range, System.Globalization.PersianCalendar.CheckYearRange(), System.SR.Format(), System.ThrowHelper.ThrowArgumentOutOfRange_Month(), and System.year.

Referenced by System.Globalization.PersianCalendar.GetDaysInMonth(), and System.Globalization.PersianCalendar.IsLeapMonth().