use the IsLeapYear() method to determine if a particular year is a leap year

   
 


using System;

class MainClass {

    public static void Main() {
        bool boolResult = DateTime.IsLeapYear(2004);
        Console.WriteLine("DateTime.IsLeapYear(2004) = " + boolResult);
    }
}