Is there a better (shorter?) Way than the following?
let cpucount = System.UInt16.Parse( reader.GetInt32(3).ToString() )
let i = uint16 42
see also
MSDN Docs
and section 'casts'
What does this C # code look like in F #?
I do not know F #, but you can write Convert.ToUint16(reader.GetInt32(3)).
Convert.ToUint16(reader.GetInt32(3))
EDIT : According to MSDN you can do by typing uint16 reader.GetInt32(3).
uint16 reader.GetInt32(3)
Source: https://habr.com/ru/post/1736903/More articles:How to put image and bottom text together in UIButton? - objective-cHow can I prove whether lunch philosophers suffer from dead end or hungry opportunities? When to start? - multithreadingHow to create an installer for Visual Studio 2008 addin? - c #Imgur and VB.NET API Help - Image POST - api.htaccess rewrite ssl redirect URL - sslRandom number C ++ from the set - c ++How to display user location in mapkit? - iphonemvc popup dropdown list - drop-down-menuFaster than trying and except? - Python - pythonИзвлечение URL из строки - objective-cAll Articles