2 writes to StringMarshalling
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
225interopData = interopData with { IsUserDefined = interopData.IsUserDefined | InteropAttributeMember.StringMarshalling, StringMarshalling = StringMarshalling.Utf16 };
Microsoft.Interop.SourceGeneration (1)
InteropAttributeData.cs (1)
95StringMarshalling = stringMarshalling,
13 references to StringMarshalling
Microsoft.Interop.ComInterfaceGenerator (4)
GeneratedComInterfaceAttributeData.cs (1)
23StringMarshalling = generatedComInterfaceAttr.StringMarshalling,
VirtualMethodIndexData.cs (1)
30StringMarshalling = virtualMethodIndex.StringMarshalling
VtableIndexStubGenerator.cs (2)
236if (virtualMethodIndexData.StringMarshalling == StringMarshalling.Custom && virtualMethodIndexData.StringMarshallingCustomType is null) 243if (virtualMethodIndexData.StringMarshalling != StringMarshalling.Custom && virtualMethodIndexData.StringMarshallingCustomType is not null)
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (2)
180if (libraryImportData.StringMarshalling == StringMarshalling.Custom && libraryImportData.StringMarshallingCustomType is null) 187if (libraryImportData.StringMarshalling != StringMarshalling.Custom && libraryImportData.StringMarshallingCustomType is not null)
src\libraries\System.Runtime.InteropServices\gen\Common\LibraryImportData.cs (1)
20StringMarshalling = libraryImport.StringMarshalling,
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (2)
178if (libraryImportData.StringMarshalling == StringMarshalling.Custom && libraryImportData.StringMarshallingCustomType is null) 185if (libraryImportData.StringMarshalling != StringMarshalling.Custom && libraryImportData.StringMarshallingCustomType is not null)
DownlevelLibraryImportGeneratorHelpers.cs (1)
18defaultEncoding = interopAttributeData.StringMarshalling switch
src\libraries\System.Runtime.InteropServices\gen\Common\LibraryImportData.cs (1)
20StringMarshalling = libraryImport.StringMarshalling,
Microsoft.Interop.SourceGeneration (2)
DefaultMarshallingInfoParser.cs (1)
38defaultEncoding = interopAttributeData.StringMarshalling switch
InteropAttributeData.cs (1)
71if (namedArguments.TryGetValue(nameof(InteropAttributeCompilationData.StringMarshalling), out TypedConstant stringMarshallingValue))