示例#1
0
 /// <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());
 }
示例#2
0
 /// <summary>
 ///     Converts a hex string to a UInt16
 /// </summary>
 /// <param name="hexString">The hexadecimal string.</param>
 /// <returns>System.UInt16.</returns>
 /// <example>"cdab" =&gt; 0xabcd</example>
 public static ushort ToUShort(this string hexString)
 {
     return(ByteArrayBuilder.StringToByteArray(hexString).ToUShort());
 }
示例#3
0
 /// <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());
 }