Skip to content

Commit

Permalink
UnmanagedFunctionPointer doesn't require field names to be functional…
Browse files Browse the repository at this point in the history
…. Fixing the doc to just state that the fields are optional. (#10724)
  • Loading branch information
vitek-karas authored Dec 5, 2024
1 parent 54c1feb commit bc175b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<format type="text/markdown"><![CDATA[
## Remarks
The fields of the <xref:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute> attribute control various aspects of the transition of a delegate to an unmanaged function pointer, and are the same as the fields with identical names in the <xref:System.Runtime.InteropServices.DllImportAttribute> attribute. These fields are optional, but if you do not specify a field name, <xref:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute> is ignored.
The fields of the <xref:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute> attribute control various aspects of the transition of a delegate to an unmanaged function pointer, and are the same as the fields with identical names in the <xref:System.Runtime.InteropServices.DllImportAttribute> attribute. These fields are optional.
For more information about using attributes, see [Attributes](/dotnet/standard/attributes/).
Expand Down

0 comments on commit bc175b4

Please sign in to comment.