30 references to CharEncoding
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
148
var defaultInfo = new DefaultMarshallingInfo(
CharEncoding
.Utf16, null);
Microsoft.Interop.LibraryImportGenerator.Downlevel (8)
DownlevelLibraryImportGeneratorHelpers.cs (7)
15
CharEncoding
defaultEncoding =
CharEncoding
.Undefined;
20
StringMarshalling.Utf16 =>
CharEncoding
.Utf16,
21
StringMarshalling.Utf8 =>
CharEncoding
.Utf8,
22
StringMarshalling.Custom =>
CharEncoding
.Custom,
23
_ =>
CharEncoding
.Undefined, // [Compat] Do not assume a specific value
28
defaultEncoding =
CharEncoding
.Custom;
DownlevelStringMarshallingInfoProvider.cs (1)
32
return _defaultMarshallingInfo.CharEncoding ==
CharEncoding
.Undefined ? NoMarshallingInfo.Instance : new MarshallingInfoStringSupport(_defaultMarshallingInfo.CharEncoding);
Microsoft.Interop.SourceGeneration (21)
CharMarshallingInfoProvider.cs (1)
29
return _defaultMarshallingInfo.CharEncoding ==
CharEncoding
.Undefined ? new UnmanagedBlittableMarshallingInfo(IsStrictlyBlittable: false) : new MarshallingInfoStringSupport(_defaultMarshallingInfo.CharEncoding);
DefaultMarshallingInfoParser.cs (7)
35
CharEncoding
defaultEncoding =
CharEncoding
.Undefined;
40
StringMarshalling.Utf16 =>
CharEncoding
.Utf16,
41
StringMarshalling.Utf8 =>
CharEncoding
.Utf8,
42
StringMarshalling.Custom =>
CharEncoding
.Custom,
43
_ =>
CharEncoding
.Undefined, // [Compat] Do not assume a specific value
48
defaultEncoding =
CharEncoding
.Custom;
MarshalAsParser.cs (3)
21
CharEncoding
CharEncoding) : MarshallingInfoStringSupport(CharEncoding), IForwardedMarshallingInfo
34
CharEncoding
CharEncoding) : MarshalAsInfo(UnmanagedType, CharEncoding)
61
CharEncoding
CharEncoding,
Marshalling\CharMarshallingGeneratorResolver.cs (4)
60
case
CharEncoding
.Utf16:
62
case
CharEncoding
.Utf8:
65
NotSupportedDetails = SR.Format(SR.MarshallingCharAsSpecifiedStringMarshallingNotSupported, nameof(
CharEncoding
.Utf8))
67
case
CharEncoding
.Custom:
MarshallingAttributeInfo.cs (2)
19
CharEncoding
CharEncoding,
65
CharEncoding
CharEncoding
StringMarshallingInfoProvider.cs (4)
32
if (_defaultMarshallingInfo.CharEncoding ==
CharEncoding
.Undefined)
36
else if (_defaultMarshallingInfo.CharEncoding ==
CharEncoding
.Custom)
62
CharEncoding
.Utf16 => CustomMarshallingInfoHelper.CreateMarshallingInfoByMarshallerTypeName(_compilation, type, TypeNames.Utf16StringMarshaller),
63
CharEncoding
.Utf8 => CustomMarshallingInfoHelper.CreateMarshallingInfoByMarshallerTypeName(_compilation, type, TypeNames.Utf8StringMarshaller),