What's the equivalent of WORD in C#?

Tom Wright picture Tom Wright · Mar 30, 2011 · Viewed 26.5k times · Source

I'm trying to access an unmanaged library and am lucky to have access to a comprehensive guide to the API.

Unfortunately, I've no idea what the C# equivalent of C++'s WORD type is. Similarly, I've no idea what DWORD would be.

Answer

yan picture yan · Mar 30, 2011

You're probably looking for ushort for WORD and uint for DWORD.