mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
Rename GeneratedDllImportAttribute
-> LibraryImportAttribute
(#66307)
This commit is contained in:
parent
b71eba8b3a
commit
c2ec86b1c5
992 changed files with 3687 additions and 3687 deletions
|
@ -166,7 +166,7 @@ Using enums instead of partial, static classes can lead to needing lots of casts
|
|||
|
||||
When defining the P/Invoke signatures and structs, we follow the guidelines in the [interop best practices documentation](https://docs.microsoft.com/en-us/dotnet/standard/native-interop/best-practices).
|
||||
|
||||
The runtime repo makes use of [source-generated p/invokes](../design/features/source-generator-pinvokes.md) whenever possible (see [the compatibility doc](../design/libraries/LibraryImportGenerator/Compatibility.md) for unsupported scenarios). Methods should be marked `GeneratedDllImport` and be `static` and `partial`.
|
||||
The runtime repo makes use of [source-generated p/invokes](../design/features/source-generator-pinvokes.md) whenever possible (see [the compatibility doc](../design/libraries/LibraryImportGenerator/Compatibility.md) for unsupported scenarios). Methods should be marked `LibraryImport` and be `static` and `partial`.
|
||||
|
||||
If implicit framework references are disabled (as is the case for most libraries projects), explicit references to the below are required for marshalling arrays:
|
||||
- `System.Memory`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue