System.Globalization.TaiwanCalendar.IsLeapMonth C# (CSharp) Method

IsLeapMonth() public method

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

Usage Example

 public void NegTest3()
 {
     System.Globalization.Calendar tc = new TaiwanCalendar();
     Random rand = new Random(-55);
     int year = rand.Next(tc.MinSupportedDateTime.Year, tc.MaxSupportedDateTime.Year + 1);
     int month = rand.Next(12, Int32.MaxValue);
     int era = Calendar.CurrentEra;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         tc.IsLeapMonth(year, month, era);
     });
 }
All Usage Examples Of System.Globalization.TaiwanCalendar::IsLeapMonth