Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将一些 c++ 遗留代码转换为 C#,我想知道MAKEWORDc++ Windows 宏的 C# 等价物是什么?
MAKEWORD
public static uint MakeWord(byte low, byte high) { return ((uint)high << 8) | low; }
但是,您可能需要结果,这int取决于您使用它做什么(必要时强制转换)。
int