public static bool TryParse(string value, out CPUKey cpuKey) { return(TryParse(CPUKeyUtils.HexStringToBytes(value), out cpuKey)); }
public static CPUKey Parse(string value) { return(Parse(CPUKeyUtils.HexStringToBytes(value))); }
/// <summary> /// Sanity check to verify that a <see cref="CPUKey"/> object is valid. /// </summary> /// <param name="cpukey">The <see cref="CPUKey"/> object to validate.</param> /// <returns>Returns <c>true</c> if the object is a valid CPUKey, <c>false</c> otherwise.</returns> public bool IsValid() { return(CPUKeyUtils.IsValid(this)); }
/// <summary> /// Overrides base ToString() method. /// </summary> /// <returns>A UTF-16 encoded string representing the CPUKey.</returns> public override string ToString() { return(ToByteArray() is null ? String.Empty : CPUKeyUtils.BytesToHexString(ToByteArray())); }
public bool TryUpdate(string value) { return(TryUpdate(CPUKeyUtils.HexStringToBytes(value))); }