public int GregorianYear(int year) {
if (year < 1 || year > _maxYear) {
System.IO.StringWriter sw =
new System.IO.StringWriter();
sw.Write(
"Valid Values are between " +
"{0} and {1}, inclusive.",
1, _maxYear);
throw new System.ArgumentOutOfRangeException(
"year", sw.ToString());
}
return year + _gregorianYearStart - 1;
}