Uint32

C#:
MessageBox.Show(UInt32.MaxValue.ToString());
MessageBox.Show(UInt32.MinValue.ToString());

gives 4294967295 and 0 respectively.
 
Well some of my application variables are using values from 0 to ~ 80000 ...and I was thinking if Uint16 would take less memory than Integer.... what do you think ?
 
Probably not worth the tradeof, a normal int (Int32) is CLS compliant and only a couple of bytes more. Unless you are allocating large amounts of them at once I wouldnt bother personally.
 
Back
Top