<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.3.26207.106" />

System.Reflection.MethodImportAttributes

Specifies flags for the unmanaged method import attributes.

Specifies that the best-fit mapping behavior when converting Unicode characters to ANSI characters is disabled.

Specifies that the best-fit mapping behavior when converting Unicode characters to ANSI characters is enabled.

Specifies whether the best-fit mapping behavior when converting Unicode characters to ANSI characters is enabled or disabled.

Specifies that the calling convention is CDecl.

Specifies that the calling convention is FastCall.

Specifies the calling convention.

Specifies that the calling convention is StdCall.

Specifies that the calling convention is ThisCall.

Specifies that the default platform calling convention is used.

Specifies that strings are marshalled as multiple-byte character strings: the system default Windows (ANSI) code page on Windows, and UTF-8 on Unix.

Specifies that the character set is chosen automatically. See Charsets and marshaling for details.

Specifies the character set used for string marshalling.

Specifies that strings are marshalled as Unicode 2-byte character strings.

Specifies that the Common Language Runtime should not try an entry-point names with charset-specific suffixes when searching for the imported method.

None = 0

Specifies default method import attributes.

Specifies that the imported method calls the SetLastError Windows API function before returning.

Specifies that an exception should not be thrown when an unmappable Unicode character is converted to an ANSI character.

Specifies that an exception should be thrown when an unmappable Unicode character is converted to an ANSI character.

Specifies whether an exception should be thrown when an unmappable Unicode character is converted to an ANSI character.