What's the equivalent of WORD in C#?

2020-06-08 03:03发布

问题:

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.

回答1:

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