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

◆ GetGregorianYear()

override int System.Globalization.KoreanLunisolarCalendar.GetGregorianYear ( int year,
int era )
inlinepackage

Definition at line 1184 of file KoreanLunisolarCalendar.cs.

1185 {
1186 if (era != 0 && era != 1)
1187 {
1188 throw new ArgumentOutOfRangeException("era", era, SR.ArgumentOutOfRange_InvalidEraValue);
1189 }
1190 if (year < 918 || year > 2050)
1191 {
1192 throw new ArgumentOutOfRangeException("year", year, SR.Format(SR.ArgumentOutOfRange_Range, 918, 2050));
1193 }
1194 return year;
1195 }

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