CSharp Equivalent of VC++ char?

C

Chris Ashley

How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).
 
M

Morten Wennevik

Hi Chris

sbyte?


How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).
 
A

Angel Of Death

* Chris Ashley said:
How can I implement a byte in CSharp that works the same as the char in
VC++ 6? EG: With the range -128 to 127? The standard byte has the range
0 to 255, and the CSharp char is too long (16 bits).
sbyte, is 1 byte and has values -128 to 127.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top