Skip to content

Commit c4d82bc

Browse files
Merge pull request #5025 from dotnet/AaronRobinsonMSFT-patch-1
Update UnmanagedCallersOnlyAttribute.xml
2 parents 0d0baa3 + 2bc7e53 commit c4d82bc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

xml/System.Runtime.InteropServices/UnmanagedCallersOnlyAttribute.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
## Remarks
2828
2929
Methods marked with this attribute have the following restrictions:
30-
* Method must be marked "static".
31-
* Must not be called from managed code.
32-
* Must only have <see href="https://docs.microsoft.com/dotnet/framework/interop/blittable-and-non-blittable-types">blittable</see> arguments.
33-
30+
* Method must be marked `static`.
31+
* Must not be called from managed code.
32+
* Must only have [blittable](https://docs.microsoft.com/dotnet/framework/interop/blittable-and-non-blittable-types) arguments.
3433
]]></format>
3534
</remarks>
3635
</Docs>
@@ -75,7 +74,10 @@ Methods marked with this attribute have the following restrictions:
7574
## Remarks
7675
7776
Supplied types must be from the official <xref:System.Runtime.CompilerServices> namespace and be of the form `CallConvXXX`.
78-
77+
78+
The "default platform calling convention" is generally unambiguous for all supported platforms except x86-based platforms. The x86 defaults are as follows:
79+
* Windows - [stdcall](https://docs.microsoft.com/cpp/cpp/stdcall)
80+
* Non-Windows - [cdecl](https://docs.microsoft.com/cpp/cpp/cdecl)
7981
]]></format>
8082
</remarks>
8183
</Docs>

0 commit comments

Comments
 (0)