"\x1" is not a .NET format for hex values: that would be "0x1".
You can do it, if you replace the backslash. Do note that backslash is an escape character in C# strings, so you need to use the "@" prefix to create a literal string containing it:
string prefixedHex = @"\x1";
int intValue = Convert.ToInt32(prefixedHex.Replace(@"\x", "0x"), 16);