30 references to InteropAttributeMember
Microsoft.Interop.ComInterfaceGenerator (5)
ComInterfaceInfo.cs (4)
200
if (attrInfo.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling) || attrInfo.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshallingCustomType))
237
if ((baseAttr.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling) || baseAttr.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshallingCustomType))
VtableIndexStubGenerator.cs (1)
248
if (virtualMethodIndexData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
Microsoft.Interop.LibraryImportGenerator (10)
Analyzers\ConvertToLibraryImportAnalyzer.cs (2)
220
interopData = interopData with { IsUserDefined = interopData.IsUserDefined |
InteropAttributeMember
.SetLastError, SetLastError = true };
225
interopData = interopData with { IsUserDefined = interopData.IsUserDefined |
InteropAttributeMember
.StringMarshalling, StringMarshalling = StringMarshalling.Utf16 };
LibraryImportGenerator.cs (8)
277
if (libraryImportData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
386
if (pinvokeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling)
398
pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~
InteropAttributeMember
.StringMarshalling };
401
if (pinvokeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshallingCustomType))
408
$"{nameof(TypeNames.LibraryImportAttribute)}{Type.Delimiter}{nameof(
InteropAttributeMember
.StringMarshallingCustomType)}");
411
pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~
InteropAttributeMember
.StringMarshallingCustomType };
497
if (target.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
505
if (target.IsUserDefined.HasFlag(
InteropAttributeMember
.SetLastError))
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
DownlevelLibraryImportGenerator.cs (4)
280
if (pinvokeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling)
290
pinvokeData = pinvokeData with { IsUserDefined = pinvokeData.IsUserDefined & ~
InteropAttributeMember
.StringMarshalling };
372
if (target.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
383
if (target.IsUserDefined.HasFlag(
InteropAttributeMember
.SetLastError))
DownlevelLibraryImportGeneratorHelpers.cs (2)
16
if (interopAttributeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
26
else if (interopAttributeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshallingCustomType))
Microsoft.Interop.SourceGeneration (9)
DefaultMarshallingInfoParser.cs (2)
36
if (interopAttributeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshalling))
46
else if (interopAttributeData.IsUserDefined.HasFlag(
InteropAttributeMember
.StringMarshallingCustomType))
InteropAttributeData.cs (7)
32
public
InteropAttributeMember
IsUserDefined { get; init; }
47
public
InteropAttributeMember
IsUserDefined { get; init; }
57
InteropAttributeMember
userDefinedValues =
InteropAttributeMember
.None;
64
userDefinedValues |=
InteropAttributeMember
.SetLastError;
73
userDefinedValues |=
InteropAttributeMember
.StringMarshalling;
84
userDefinedValues |=
InteropAttributeMember
.StringMarshallingCustomType;