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

◆ IsLeapMonth() [2/2]

override bool System.Globalization.GregorianCalendar.IsLeapMonth ( int year,
int month,
int era )
inline

Definition at line 265 of file GregorianCalendar.cs.

266 {
267 if (era != 0 && era != 1)
268 {
269 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
270 }
271 if (year < 1 || year > 9999)
272 {
273 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
274 }
275 if (month < 1 || month > 12)
276 {
277 throw new ArgumentOutOfRangeException("month", month, SR.Format(SR.ArgumentOutOfRange_Range, 1, 12));
278 }
279 return false;
280 }

References System.SR.ArgumentOutOfRange_InvalidEraValue, System.SR.ArgumentOutOfRange_Range, System.SR.Format(), and System.year.