c# - Convert hexadecimal string to an integer -



c# - Convert hexadecimal string to an integer -

int value = convert.toint32('o'); byte[] b = new byte[] { ( byte)value }; file.writeallbytes(default.projectspath , b);

when open file displays o, want write byte value file?

remove the0x convert:

int = convert.toint32("0xfe".substring(2), 16);

c# hex

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -