in C#, uint is a UInt32 type so it will be always 32 bits long no matter the OS is 32 or 64 bits. Am I right?
Yes, that's right. uint
is always an alias for global::System.UInt32
(and yes, that's always 32 bits :). The same logic applies for the other predefined aliases.
The only built-in value type I can think of which has a size varying by platform is IntPtr
, for obvious reasons. (Any value type which composes an IntPtr
would have the same behaviour, of course. SafeHandle
springs to mind.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With