<p>How do you convert between hexadecimal numbers and decimal numbers in C#?</p>

```
```
String stringrep = myintvar.ToString("X");

int num = int.Parse("FF", System.Globalization.NumberStyles.HexNumber);
```
```