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

◆ GetMonthsInYear() [2/2]

override int System.Globalization.GregorianCalendar.GetMonthsInYear ( int year,
int era )
inline

Definition at line 190 of file GregorianCalendar.cs.

191 {
192 if (era != 0 && era != 1)
193 {
194 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
195 }
196 if (year < 1 || year > 9999)
197 {
198 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 1, 9999));
199 }
200 return 12;
201 }

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