/// <summary> /// Converts a hex string to a UInt64 /// </summary> /// <param name="hexString">The hexadecimal string.</param> /// <returns>System.UInt64.</returns> public static ulong ToULong(this string hexString) { return(ByteArrayBuilder.StringToByteArray(hexString).ToULong()); }
/// <summary> /// Converts a hex string to a UInt16 /// </summary> /// <param name="hexString">The hexadecimal string.</param> /// <returns>System.UInt16.</returns> /// <example>"cdab" => 0xabcd</example> public static ushort ToUShort(this string hexString) { return(ByteArrayBuilder.StringToByteArray(hexString).ToUShort()); }
/// <summary> /// Converts a hex string to a UInt64 /// </summary> /// <param name="hexString">The hexadecimal string.</param> /// <returns>System.UInt32.</returns> public static uint ToUInt(this string hexString) { return(ByteArrayBuilder.StringToByteArray(hexString).ToUInt()); }