Raj said:
Why is int.Parse(), Int16, Int32, Short Parse() returns hexa. value instead
of decimal?
Hexadecimal is a _text_ format. It only even makes sense to talk about
hexadecimal in the context of a string. On the other hand, the Parse()
method for Int32, Int16, Single, etc. returns a _numeric_ value. It is
not possible for the latter to have the former characteristic. They are
completely different.
For example: int.Parse("0") returns 0x0000 whereas float.Parse("0") returns
0.0
What&where's the problem?
Surely your interpretation.
It's not possible to pinpoint where you've misunderstood since you
haven't elaborated on how you're examining the result of the Parse()
methods. But for sure, you must be using some mechanism to examine the
result of the Parse() method that is specifically designed and/or
configured to display the text representation of the parsed value as
hexadecimal.
Pete