dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.3k stars 5.92k forks source link

Custom Marshaller shape docs need to be updated #42239

Open jtschuster opened 1 year ago

jtschuster commented 1 year ago

Custom marshaller shapes documentation can be clearer and should reflect that ElementX require Bidirectional marshallers.

jtschuster commented 1 year ago

Note to self: GetPinnedReference has priority over CallerAllocatedBuffer for by value parameters (but not by ref), and CallerAllocatedBuffer has priority over general ToUnmanaged in ManagedToUnmanagedIn by ref stubs. General ToUnmanaged is used for ref scenarios.

ghost commented 1 year ago

Tagging subscribers to this area: @dotnet/interop-contrib See info in area-owners.md if you want to be subscribed.

Issue Details
Custom marshaller shapes documentation can be clearer and should reflect that ElementX require Bidirectional marshallers.
Author: jtschuster
Assignees: -
Labels: `documentation`, `area-System.Runtime.InteropServices`
Milestone: 8.0.0