Aspose.Words.Examples.CSharp.Mail_Merge.MailMergeAlternatingRows.IsOdd C# (CSharp) Method

IsOdd() private static method

Returns true if the value is odd; false if the value is even.
private static IsOdd ( int value ) : bool
value int
return bool
        private static bool IsOdd(int value)
        {
            // The code is a bit complex, but otherwise automatic conversion to VB does not work.
            return ((value / 2) * 2).Equals(value);
        }      
        /// <summary>