Convert it to an int by casting, and use the integer modulus operator "%":
if (((int) myDouble) % 2 == 0)
{
...
And BTW: do not swear on this site again: it was unnecessary, unprofessional, and unwanted. Do it again and you will be treated as a troll, and banned from the site.