System.MethodExtension.HexToLong C# (CSharp) Method

HexToLong() public static method

public static HexToLong ( this value ) : long
value this
return long
        public static long HexToLong(this string value)
        {
            if (value.Length == 2)
            {
                return 0;
            }

            return Convert.ToInt64(value, 16);
        }