22 references to MaxYear
System.Private.CoreLib (22)
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (14)
97if (year >= 1 && year <= MaxYear && month >= 1 && month <= 12) 252if (year < 1 || year > MaxYear) 257SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 269internal override bool IsValidYear(int year, int era) => year >= 1 && year <= MaxYear; 274year < 1 || year > MaxYear || 303if (year < 1 || year > MaxYear) 308SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 332if (year < 1 || year > MaxYear) 337SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 353if (year < 1 || year > MaxYear) 358SR.Format(SR.ArgumentOutOfRange_Range, 1, MaxYear)); 425if (value < 99 || value > MaxYear) 430SR.Format(SR.ArgumentOutOfRange_Range, 99, MaxYear)); 439ArgumentOutOfRangeException.ThrowIfGreaterThan(year, MaxYear);
src\libraries\System.Private.CoreLib\src\System\Globalization\ISOWeek.cs (2)
102if (year < MinYear || year > MaxYear) 134if (year < MinYear || year > MaxYear)
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
74new EraInfo(5, 2019, 5, 1, 2018, 1, GregorianCalendar.MaxYear - 2018, "\x4ee4\x548c", "\x4ee4", "R"),
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (1)
51int lastMaxYear = GregorianCalendar.MaxYear;
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
32new EraInfo(1, 1, 1, 1, -2333, 2334, GregorianCalendar.MaxYear + 2333) // era #, start year/month/day, yearOffset, minEraYear
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
27new EraInfo(1, 1912, 1, 1, 1911, 1, GregorianCalendar.MaxYear - 1911) // era #, start year/month/day, yearOffset, minEraYear
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanLunisolarCalendar.cs (1)
22new EraInfo(1, 1912, 1, 1, 1911, 1, GregorianCalendar.MaxYear - 1911) // era #, start year/month/day, yearOffset, minEraYear
src\libraries\System.Private.CoreLib\src\System\Globalization\ThaiBuddhistCalendar.cs (1)
21new EraInfo(1, 1, 1, 1, -543, 544, GregorianCalendar.MaxYear + 543) // era #, start year/month/day, yearOffset, minEraYear