System.MethodExtension.HexToInt C# (CSharp) 메소드

HexToInt() 공개 정적인 메소드

public static HexToInt ( this value ) : int
value this
리턴 int
        public static int HexToInt(this string value)
        {
            if (value.Length == 2)
            {
                return 0;
            }

            return Convert.ToInt32(value, 16);
        }