Question: In a C# enumeration, are there any negative side effects of using a negative number?

I am modelling response codes and one of the codes in negative. This compiles but I want to know if there are any negative side effects to this.

```
public enum ResponseCodes
{
    InvalidServerUserPasswordCombo = -1,

    // etc.
}

```

Answer: 
> 
> negative side effects of using a negative number
> 
> 
> 

Clearly, with any underlying signed type, any bitwise operations are going to get "interesting" very quickly.

But using an enum as a collection of related constants can quite happily use negative values.
This answer is 7 years late but I haven't seen the point made anywhere else.

There is a minor negative side effect when using negative numbers for enums. If you want to cast a negative number to an enum you'll need to ensure the number is in brackets to avoid a compile error, e.g.: 

```
class YourClass {
    ResponseCodes rc = (ResponseCodes)(-1);
}

```