Find next leap year from today's date in c#
<p>I want to find the next leap year from today's date.</p>

<p>For ex.,</p>

<pre><code>Date        NextLeapDate
-----       ------------
2016-01-01   2016-02-29
2016-05-24   2020-02-29
2017-02-03   2020-02-29
</code></pre>

<p>This is what I have so far to get the next leap year but it's getting me wrong value,</p>

<pre><code>public int GetNextLeapYear(int year)
{
    bool isLeapYear = false;

    while (true)
    {
        if (DateTime.IsLeapYear(year))
        {
            isLeapYear = true;
        }
        else
        {
            year = year + 1;
            GetNextLeapYear(year);
        }
        break;
    }
    return year;
}
</code></pre>