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

◆ GetLeapMonth() [2/2]

override int System.Globalization.GregorianCalendar.GetLeapMonth ( int year,
int era )
inlinevirtual

Reimplemented from System.Globalization.Calendar.

Definition at line 252 of file GregorianCalendar.cs.

253 {
254 if (era != 0 && era != 1)
255 {
256 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
257 }
258 if (year < 1 || year > 9999)
259 {
260 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
261 }
262 return 0;
263 }

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