Hi All,
Thanks
for your replies;
My main gripe is that such a fundamental need is poorly documented and
implemented. (IMHO)
Try looking up hex in the C# help and see what I mean.
Try looking up 'Convert hex' also. The VB school is adequately served, the
C# ...?
Ever tried
? long.Parse("0xF") in the immediate window?
No Go.
Why ?
Because you are missing the 'well known'
System.Globalization.NumberStyles.HexNumber parameter
(Thanks James)
And even that doesn't work!
Why? because in this situation you leave out the hex specifier!
Fool. Why did you not know that?
I don't mind spending time researching the more esoteric features of C# when
needed, but I begrudge every second spent on something that should be drop
dead simple.
Well, enough said. I'll grab another cup of coffee and rumble back into my
cave.
Thanks again.
Bob
"Bob" <bo*@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi,
It must be easy but I can't see how to this is done.
I mean there will be a plethora of built in methods / properties DEVOTED
to this fundmental need
just waiting to be invoked right?
It must be simple to find. Right in your face so to speak because NOBODY
would have left this out of the latest and greatest framework
implementation.
Then why am I floundering around the net looking for this info?
So OK I give in.
Could someone please point me at the elusive
char.Tohex and string.Tohex functions or do they only exist in my caffeine
addled brain?
What year is this?
Are we still writing hex to decimal code snippets??
Thanks
Bob