| File: src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\StringMarshalling.cs | Web Access |
| Project: System.Private.CoreLib.csproj (System.Private.CoreLib) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Types in this file are used for generated p/invokes // #if MICROSOFT_INTEROP_SOURCEGENERATION namespace Microsoft.Interop #else namespace System.Runtime.InteropServices #endif { /// <summary> /// Specifies how strings should be marshalled for generated p/invokes /// </summary> public enum StringMarshalling { /// <summary> /// Indicates the user is supplying a specific marshaller in <see cref="LibraryImportAttribute.StringMarshallingCustomType"/>. /// </summary> Custom = 0, /// <summary> /// Use the platform-provided UTF-8 marshaller. /// </summary> Utf8, /// <summary> /// Use the platform-provided UTF-16 marshaller. /// </summary> Utf16, } }