// Store integer 182
int decValue = 182;
// Convert integer 182 as a hex in a string variable
string hexValue = decValue.ToString("X");
// Convert the hex string back to the number
int decAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);
ToString()에서 X 키워드를 넣으면 Hex값으로 변환이 되죠.
그 반대로 Hex문자열을 int로 변환하려면 위와 같은 작업을 해줘야 하는군요..
혹시 기억 안나실땐 위 코드를..