c# .net negate integer code example Example: find negative version of integer in c# myInt = myInt * -1