# HexToBytes Method Converts a hex string back to a byte array. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.4 **C#** ``` C# private byte[] HexToBytes( string hex ) ``` **F#** ``` F# private member HexToBytes : hex : string -> byte[] ``` #### Parameters
  String
The hexadecimal.
#### Return Value Byte[] A byte[]. ## Exceptions
ArgumentException Thrown when one or more arguments have unsupported or illegal values.
## See Also #### Reference KeyHelper Class CapyKit.Helpers Namespace