System.Globalization.KoreanCalendar.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

コード例 #1
0
 public void PosTest4()
 {
     System.Globalization.Calendar kC = new KoreanCalendar();
     System.Globalization.Calendar gC = new GregorianCalendar();
     DateTime dateTime = gC.ToDateTime(1200, 2, 29, 0, 0, 0, 0);
     int year = dateTime.Year;
     int month = dateTime.Month;
     int era = gC.GetEra(dateTime);
     bool expectedValue = gC.IsLeapMonth(year, month, era);
     bool actualValue;
     actualValue = kC.IsLeapMonth(year + 2333, month, kC.GetEra(dateTime));
     Assert.Equal(expectedValue, actualValue);
 }
All Usage Examples Of System.Globalization.KoreanCalendar::IsLeapMonth