public static long HexToLong(this string value) { if (value.Length == 2) { return 0; } return Convert.ToInt64(value, 16); }