System.Globalization.ThaiBuddhistCalendar.IsLeapDay C# (CSharp) Method

IsLeapDay() public method

public IsLeapDay ( int year, int month, int day, int era ) : bool
year int
month int
day int
era int
return bool
        public override bool IsLeapDay(int year, int month, int day, int era)
        {
            return (helper.IsLeapDay(year, month, day, era));
        }

Usage Example

 public void PosTest3()
 {
     System.Globalization.Calendar tbc = new ThaiBuddhistCalendar();
     Random rand = new Random(-55);
     int year = tbc.MinSupportedDateTime.Year + 543;
     int month = tbc.MinSupportedDateTime.Month;
     int era;
     for (int i = 0; i < tbc.Eras.Length; i++)
     {
         era = tbc.Eras[i];
         Assert.False(tbc.IsLeapDay(year, month, era));
     }
 }
All Usage Examples Of System.Globalization.ThaiBuddhistCalendar::IsLeapDay