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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Deepak Bhatia142 reputationPosted Oct 24, 2009, 12:57 AM EDT