Home c# C # String Hex in int hex

C # String Hex in int hex




There is a string

string a = "0x1234";

Need to convert to

int a = 0x1234

Help please.

Answer 1, Authority 100%

You can use the Convert. TINT32 With the base of the number system:

int i = convert.toint32 (a, 16);

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions