By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 2,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

CSharp Equivalent of VC++ char?

P: n/a
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).

Oct 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Chris

sbyte?
On Mon, 02 Oct 2006 10:09:01 +0200, Chris Ashley
<ch***********@gmail.comwrote:
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).


--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 2 '06 #2

P: n/a
* Chris Ashley wrote:
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.
Oct 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.