Conversion from C++ to C#
In C++ we have this code:
#define WORD(b) ((b)[0] << 8 | (b)[1])
int Foo::R(void)
{
unsigned char *a;
return WORD(a+2);
}
How can this be translated to C#?
Kind regards
Hans
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepak BhatiaPosted Oct 24, 2009, 4:57 AM