3 types derived from MarshalAsInfo
Microsoft.Interop.SourceGeneration (3)
MarshalAsParser.cs (3)
40
CharEncoding CharEncoding) :
MarshalAsInfo
(UnmanagedType, CharEncoding)
60
TypePositionInfo? IidParameterIndexInfo) :
MarshalAsInfo
(UnmanagedType, CharEncoding)
84
CountInfo CountInfo) :
MarshalAsInfo
(UnmanagedType, CharEncoding)
33 references to MarshalAsInfo
Microsoft.Interop.ComInterfaceGenerator (4)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
178
if (info.MarshallingAttributeInfo is not
MarshalAsInfo
(UnmanagedType unmanagedType, _))
DiagnosticDescriptorProvider.cs (2)
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: true, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: false, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
Marshallers\StructAsHResultMarshallerFactory.cs (1)
15
if (info is { ManagedType: ValueTypeInfo, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.Error, _) })
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
203
if (info.MarshallingAttributeInfo is not
MarshalAsInfo
(UnmanagedType unmanagedType, _))
DiagnosticDescriptorProvider.cs (2)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: true, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: false, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DiagnosticDescriptorProvider.cs (2)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: true, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: false, MarshallingAttributeInfo:
MarshalAsInfo
} } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
Microsoft.Interop.SourceGeneration (24)
MarshalAsWithCustomMarshallersParser.cs (4)
39
var
marshalAsInfo = (
MarshalAsInfo
)_marshalAsAttributeParser.ParseAttribute(attributeData, type, indirectionDepth, useSiteAttributes, marshallingInfoCallback);
98
MarshalAsInfo
marshalAsInfo)
105
MarshalAsInfo
.UnmanagedType_LPUTF8Str => TypeNames.Utf8StringMarshaller,
Marshalling\CharMarshallingGeneratorResolver.cs (1)
47
if (marshalInfo is
MarshalAsInfo
marshalAsInfo)
Marshalling\MarshalAsMarshallingGeneratorResolver.cs (19)
41
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_SByte }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.I1, _) }
42
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Byte }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.U1, _) }
43
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int16 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.I2, _) }
44
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt16 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.U2, _) }
45
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int32 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.I4 or UnmanagedType.Error, _) }
46
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt32 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.U4 or UnmanagedType.Error, _) }
47
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Int64 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.I8, _) }
48
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UInt64 }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.U8, _) }
49
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_IntPtr }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.SysInt, _) }
50
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_UIntPtr }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.SysUInt, _) }
51
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Single }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.R4, _) }
52
or { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Double }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.R8, _) }:
71
case { ManagedType: PointerTypeInfo { IsFunctionPointer: true }, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.FunctionPtr, _) }:
75
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.U1, _) }:
77
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.I1, _) }:
79
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.U4, _) }:
81
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.I4 or UnmanagedType.Bool, _) }:
83
case { ManagedType: SpecialTypeInfo { SpecialType: SpecialType.System_Boolean }, MarshallingAttributeInfo:
MarshalAsInfo
(UnmanagedType.VariantBool, _) }:
87
case { ManagedType: DelegateTypeInfo delegateTypeInfo, MarshallingAttributeInfo: NoMarshallingInfo or
MarshalAsInfo
(UnmanagedType.FunctionPtr, _) }: