public static ushort ToUInt16(string value, int fromBase) { uint result = ToUInt32(value, fromBase); if (result > ushort.MaxValue) { throw ExceptionHelper.OverflowUInt16(); } return(unchecked ((ushort)result)); }