Skip to content

Commit

Permalink
Update Compatibility doc for struct marshalling (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Jan 11, 2021
1 parent 18aa6f1 commit e73c5de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DllImportGenerator/designs/Compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ In the source-generated marshalling, arrays will be allocated on the stack (inst

In the source generated marshalling, the `[In]` and `[Out]` attributes will only be supported on parameters passed by value. For by-ref parameters, users should use the `in`, `ref`, or `out` keywords respectively. Additionally, they will only be supported in scenarios where applying them would result in behavior different from the default, such as applying `[Out]` or `[In, Out]` to a by-value non-blittable array parameter. This is in contrast to the built-in system which will allow them in all cases even when they have no effect.

### Struct marshalling

Support for struct marshalling in the source-generated marshalling is described in [StructMarshalling.md](StructMarshalling.md).

## Verison 0

This version is the built-in IL Stub generation system that is triggered whenever a method marked with `DllImport` is invoked.
This version is the built-in IL Stub generation system that is triggered whenever a method marked with `DllImport` is invoked.

0 comments on commit e73c5de

Please sign in to comment.