a boolean opposite another boolean c# code example Example: opposite bool c# threadAlive = !threadAlive;