OpenTween.RadixConvert.ToInt16 C# (CSharp) Method

ToInt16() public static method

3~36進数の数値文字列をInt16型の数値に変換します。
※2/8/10/16進数は、Convert.ToInt16メソッドを使ってください。 ※+や-の符号や0xなどのプレフィックスには対応していません。 ※引数となる数値文字列に、スペースなどの文字を含めないでください。
public static ToInt16 ( string s, int radix ) : short
s string 数値文字列
radix int 基数
return short
        public static short ToInt16(string s, int radix)
        {
            var digit = ToUInt64(s, radix);
            CheckDigitOverflow(digit, Int16.MaxValue);
            return (short)digit;
        }