Reputation: 283313
Given a string like "5A"
I want to get the character represented by that hexadecimal value. In this case, Z
. How would I do that?
Upvotes: 2
Views: 115
Reputation: 166566
How about something like
char charVal = (char)int.Parse("5A", NumberStyles.AllowHexSpecifier);
Upvotes: 6