3 instantiations of CustomTypeMarshallerData
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
613
return new
CustomTypeMarshallerData
(
701
return new
CustomTypeMarshallerData
(
MarshallingAttributeInfo.cs (1)
187
new
CustomTypeMarshallerData
(
24 references to CustomTypeMarshallerData
Microsoft.Interop.SourceGeneration (24)
ComInterfaceMarshallingInfoProvider.cs (4)
88
if (!marshallers.Modes.TryGetValue(MarshalMode.Default, out
CustomTypeMarshallerData
defaultData))
93
ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
>.Builder builder =
94
ImmutableDictionary.CreateBuilder<MarshalMode,
CustomTypeMarshallerData
>();
97
foreach (KeyValuePair<MarshalMode,
CustomTypeMarshallerData
> kvp in marshallers.Modes)
ManualTypeMarshallingHelper.cs (11)
32
public
CustomTypeMarshallerData
WithUnmanagedElementType(string unmanagedElementType)
50
ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
> Modes,
65
foreach (KeyValuePair<MarshalMode,
CustomTypeMarshallerData
> mode in Modes)
72
public
CustomTypeMarshallerData
GetModeOrDefault(MarshalMode mode)
74
CustomTypeMarshallerData
data;
85
public bool TryGetModeOrDefault(MarshalMode mode, out
CustomTypeMarshallerData
data)
230
Dictionary<MarshalMode,
CustomTypeMarshallerData
> modes = new();
285
CustomTypeMarshallerData
? data = GetMarshallerDataForType(
478
private static
CustomTypeMarshallerData
? GetMarshallerDataForType(
528
private static
CustomTypeMarshallerData
? GetStatelessMarshallerDataForType(ITypeSymbol marshallerType, MarshalMode mode, ITypeSymbol managedType, bool isLinearCollectionMarshaller, Compilation compilation, Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo, ITypeParameterSymbol? unmanagedElementTypeParameter)
629
private static
CustomTypeMarshallerData
? GetStatefulMarshallerDataForType(
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (6)
74
CustomTypeMarshallerData
marshallerData = GetMarshallerDataForTypePositionInfo(collectionInfo.Marshallers, info, context);
101
private bool ValidateRuntimeMarshallingOptions(
CustomTypeMarshallerData
marshallerData)
115
private
CustomTypeMarshallerData
GetMarshallerDataForTypePositionInfo(CustomTypeMarshallers marshallers, TypePositionInfo info, StubCodeContext context)
135
CustomTypeMarshallerData
marshallerData = GetMarshallerDataForTypePositionInfo(marshalInfo.Marshallers, info, context);
193
CustomTypeMarshallerData
marshallerData,
359
private static ElementsMarshalling CreateElementsMarshalling(
CustomTypeMarshallerData
marshallerData, IBoundMarshallingGenerator elementMarshaller, string unmanagedElementType, IElementsMarshallingCollectionSource collectionSource)
MarshallingAttributeInfo.cs (2)
149
foreach (KeyValuePair<MarshalMode,
CustomTypeMarshallerData
> mode in Marshallers.Modes)
185
new CustomTypeMarshallers(ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
>.Empty.Add(
SafeHandleMarshallingInfoProvider.cs (1)
79
Modes = ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
>.Empty