Check whether the number is even or not in .net

Even numbers are those numbers which are divided by 2 and they have not any reminder. Like 2, 4, 6, 8.
By the help of following function you can easily find out whether the input number is even or not.


Private Function CheckEvenNumber(ByVal Number As Integer) As Boolean
        If Number Mod 2 = 0 Then
            CheckEvenNumber = True
            CheckEvenNumber = False
        End If
    End Function


private bool CheckEvenNumber(int Number)
            bool functionReturnValue = false;
            if (Number % 2 == 0)
                functionReturnValue = true;
                functionReturnValue = false;
            return functionReturnValue;

Author: Ankur

Have worked primarily in the domain of Calling, CRM and direct advertisers services. My technological forte is Microsoft Technologies especially Dot Net (Visual Studio 2003, 2005, 2008, 2010 and 2012) and Microsoft SQL Server 2000,2005 and 2008 R2. My Area of Expertise is in C#. Net, VB.Net, MS-SQL Server, ASP. Net, Silverlight, HTML, XML, Crystal Report, Active Reports, Infragistics, Component Art, ComponeOne, Lead Tools etc.