Parameter in C#

前端 未结 4 509
后悔当初
后悔当初 2021-01-26 09:15

When I want get total value of memory in C# I found a kernel32 function in MSDN to invoke data from system. MSDN declare function this way:

[return: MarshalAs(Un         


        
4条回答
  •  梦毁少年i
    2021-01-26 10:01

    In: http://msdn.microsoft.com/de-de/library/system.runtime.interopservices.inattribute.aspx

    Out: http://msdn.microsoft.com/de-de/library/system.runtime.interopservices.outattribute.aspx

    Short: They control the way data is marshalled. In this case, where you specify both of them, it means that data is marshalled to both sides (caller and callee).

提交回复
热议问题