Is the class NativeMethods handled specially in .NET?

前端 未结 4 1651
广开言路
广开言路 2021-01-11 20:33

https://msdn.microsoft.com/en-us/library/ms182161.aspx

Are the three classes described on this paged handled specially in the .NET Framework? (NativeMethods, SafeNa

4条回答
  •  遥遥无期
    2021-01-11 21:09

    It's just a convention that says you should place p/invoke methods in classes named *NativeMethods, but there is no technical constraint to prevent you from doing it your own way...

提交回复
热议问题