StringMarshalling Enum

Definition

Specifies how strings should be marshalled for generated p/invokes

C#
public enum StringMarshalling
Inheritance
StringMarshalling

Fields

Name Value Description
Custom 0

Indicates a specific marshaller is supplied in StringMarshallingCustomType.

Utf8 1

Use the platform-provided UTF-8 marshaller.

Utf16 2

Use the platform-provided UTF-16 marshaller.

Applies to

Product Versions
.NET 7, 8, 9