OpenTween.RadixConvert.ToUInt16 C# (CSharp) Method

ToUInt16() public static method

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