ToFourDigitYear() публичный Метод

public ToFourDigitYear ( int year, int twoDigitYearMax ) : int
year int
twoDigitYearMax int
Результат int
        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));
        }
Пример #3
0
        public override int ToFourDigitYear(int year)
        {
            if (year < 0)
            {
                throw new ArgumentOutOfRangeException("year",
                                                      SR.ArgumentOutOfRange_NeedNonNegNum);
            }
            Contract.EndContractBlock();

            return(helper.ToFourDigitYear(year, this.TwoDigitYearMax));
        }
Пример #4
0
 /// <include file='doc\KoreanCalendar.uex' path='docs/doc[@for="KoreanCalendar.ToFourDigitYear"]/*' />
 public override int ToFourDigitYear(int year)
 {
     return(helper.ToFourDigitYear(year, this.TwoDigitYearMax));
 }