Reputation: 729
My datatable's rowcount property is returning decimal values.
Any idea why?
dtTempTable.Rows.Count
0x00001019
Upvotes: 1
Views: 2394
Reputation: 3557
First 0x00001019 is not decimal, but hexadecimal. (the prefix 0x indicate thant number is displayed in is hexadecimal form.)
It's just the representation of the data, if you compare it to a decimal value or convert it to a string, it will "work" as it's supposed.
If it display it through the watch windows or something like this, you could uncheck hexadecimal display (you could also do it though the General, Debugging, Options Dialog Box depending of your version of visual studio)
Upvotes: 1