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

◆ CheckYearRange()

int System.Globalization.EastAsianLunisolarCalendar.CheckYearRange ( int year,
int era )
inlinepackageinherited

Definition at line 155 of file EastAsianLunisolarCalendar.cs.

156 {
157 CheckEraRange(era);
158 year = GetGregorianYear(year, era);
159 if (year < MinCalendarYear || year > MaxCalendarYear)
160 {
161 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, MinEraCalendarYear(era), MaxEraCalendarYear(era)));
162 }
163 return year;
164 }

References System.SR.ArgumentOutOfRange_Range, System.Globalization.EastAsianLunisolarCalendar.CheckEraRange(), System.SR.Format(), System.Globalization.EastAsianLunisolarCalendar.GetGregorianYear(), System.Globalization.EastAsianLunisolarCalendar.MaxCalendarYear, System.Globalization.EastAsianLunisolarCalendar.MaxEraCalendarYear(), System.Globalization.EastAsianLunisolarCalendar.MinEraCalendarYear(), and System.year.

Referenced by System.Globalization.EastAsianLunisolarCalendar.CheckYearMonthRange(), System.Globalization.EastAsianLunisolarCalendar.GetDaysInYear(), System.Globalization.EastAsianLunisolarCalendar.GetLeapMonth(), System.Globalization.EastAsianLunisolarCalendar.GetMonthsInYear(), System.Globalization.EastAsianLunisolarCalendar.IsLeapYear(), and System.Globalization.EastAsianLunisolarCalendar.ToFourDigitYear().