public override int ToFourDigitYear(int year) { if (year < 0) { throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_NeedNonNegNum")); } Contract.EndContractBlock(); return (helper.ToFourDigitYear(year, this.TwoDigitYearMax)); }
public override int ToFourDigitYear(int year) { if (year < 0) { throw new ArgumentOutOfRangeException(nameof(year), SR.ArgumentOutOfRange_NeedNonNegNum); } return(helper.ToFourDigitYear(year, this.TwoDigitYearMax)); }
public override int ToFourDigitYear(int year) { if (year < 0) { throw new ArgumentOutOfRangeException("year", SR.ArgumentOutOfRange_NeedNonNegNum); } Contract.EndContractBlock(); return(helper.ToFourDigitYear(year, this.TwoDigitYearMax)); }
/// <include file='doc\KoreanCalendar.uex' path='docs/doc[@for="KoreanCalendar.ToFourDigitYear"]/*' /> public override int ToFourDigitYear(int year) { return(helper.ToFourDigitYear(year, this.TwoDigitYearMax)); }