System.Globalization.PersianCalendar.CheckEraRange C# (CSharp) Метод

CheckEraRange() приватный Метод

private CheckEraRange ( int era ) : void
era int
Результат void
        internal void CheckEraRange(int era) {
            if (era != CurrentEra && era != PersianEra) {
                throw new ArgumentOutOfRangeException("era", Environment.GetResourceString("ArgumentOutOfRange_InvalidEraValue"));
            }
        }

Usage Example

Пример #1
0
 // Token: 0x06002F78 RID: 12152 RVA: 0x000B5AA0 File Offset: 0x000B3CA0
 internal static void CheckYearRange(int year, int era)
 {
     PersianCalendar.CheckEraRange(era);
     if (year < 1 || year > 9378)
     {
         throw new ArgumentOutOfRangeException("year", string.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("ArgumentOutOfRange_Range"), 1, 9378));
     }
 }