System.Globalization.PersianCalendar.ToFourDigitYear C# (CSharp) 메소드

ToFourDigitYear() 공개 메소드

public ToFourDigitYear ( int year ) : int
year int
리턴 int
        public override int ToFourDigitYear(int year) {
            if (year < 100) {
                return (base.ToFourDigitYear(year));
            }

            if (year > MaxCalendarYear) {
                throw new ArgumentOutOfRangeException(
                            "year",
                            String.Format(
                                CultureInfo.CurrentCulture,
                                Environment.GetResourceString("ArgumentOutOfRange_Range"),
                                1,
                                MaxCalendarYear));
            }
            return (year);
        }
    }