Skip to content

Commit c711cf9

Browse files
nxtnRon Petrusha
andcommitted
Add references to UnmanagedFunctionPointerAttribute (#3265)
* Add references to UnmanagedFunctionPointerAttribute * Apply suggestions from code review Co-Authored-By: Ron Petrusha <[email protected]>
1 parent 512127b commit c711cf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Runtime.InteropServices/Marshal.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3548,7 +3548,7 @@
35483548
<format type="text/markdown"><![CDATA[
35493549

35503550
## Remarks
3551-
The delegate `d` is converted to a function pointer that can be passed to unmanaged code using the [__stdcall](https://msdn.microsoft.com/library/e212594b-1827-4d07-9527-7d412b300df8) calling convention.
3551+
The delegate `d` is converted to a function pointer that can be passed to unmanaged code using the [__stdcall](/cpp/cpp/stdcall) calling convention. You can set the calling convention by applying the <xref:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute> to the delegate.
35523552

35533553
You must manually keep the delegate from being collected by the garbage collector from managed code. The garbage collector does not track references to unmanaged code.
35543554

@@ -3611,7 +3611,7 @@
36113611
<format type="text/markdown"><![CDATA[
36123612

36133613
## Remarks
3614-
The delegate `d` is converted to a function pointer that can be passed to unmanaged code by using the [__stdcall](https://msdn.microsoft.com/library/e212594b-1827-4d07-9527-7d412b300df8) calling convention.
3614+
The delegate `d` is converted to a function pointer that can be passed to unmanaged code by using the [__stdcall](/cpp/cpp/stdcall) calling convention. You can set the calling convention by applying the <xref:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute> to the delegate.
36153615

36163616
You must manually keep the delegate from being collected by the garbage collector from managed code. The garbage collector does not track references to unmanaged code.
36173617

0 commit comments

Comments
 (0)