PersianCalendar.IsLeapYear Method (Int32, Int32)
Determines whether the specified year in the specified era is a leap year.
Assembly: mscorlib (in mscorlib.dll)
An integer from 1 through 9378 that represents the year.
An integer from 0 through 1 that represents the era.
Return ValueType: System.Boolean
true if the specified year is a leap year; otherwise, false.
year or era is outside the range supported by this calendar.
Starting with the .NET Framework 4.6, the implementation of the PersianCalendar class has changed from an observational algorithm to the Hijri solar algorithm. As a result, the method may return different values when run on .NET Framework 4.6 than when run on previous versions of the .NET Framework.
Available since 10
Available since 2.0
Available since 5.0