3 instantiations of CustomTypeMarshallerData
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (2)
575
return new
CustomTypeMarshallerData
(
655
return new
CustomTypeMarshallerData
(
MarshallingAttributeInfo.cs (1)
189
new
CustomTypeMarshallerData
(
23 references to CustomTypeMarshallerData
Microsoft.Interop.SourceGeneration (23)
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 (10)
25
ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
> Modes,
40
foreach (KeyValuePair<MarshalMode,
CustomTypeMarshallerData
> mode in Modes)
47
public
CustomTypeMarshallerData
GetModeOrDefault(MarshalMode mode)
49
CustomTypeMarshallerData
data;
60
public bool TryGetModeOrDefault(MarshalMode mode, out
CustomTypeMarshallerData
data)
202
Dictionary<MarshalMode,
CustomTypeMarshallerData
> modes = new();
257
CustomTypeMarshallerData
? data = GetMarshallerDataForType(marshallerType, marshalMode, managedType, isLinearCollectionMarshalling, compilation, getMarshallingInfoForElement);
443
private static
CustomTypeMarshallerData
? GetMarshallerDataForType(
492
private static
CustomTypeMarshallerData
? GetStatelessMarshallerDataForType(ITypeSymbol marshallerType, MarshalMode mode, ITypeSymbol managedType, bool isLinearCollectionMarshaller, Compilation compilation, Func<ITypeSymbol, MarshallingInfo>? getMarshallingInfo)
586
private static
CustomTypeMarshallerData
? GetStatefulMarshallerDataForType(
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (6)
90
CustomTypeMarshallerData
marshallerData = GetMarshallerDataForTypePositionInfo(collectionInfo.Marshallers, info, context);
117
private bool ValidateRuntimeMarshallingOptions(
CustomTypeMarshallerData
marshallerData)
131
private
CustomTypeMarshallerData
GetMarshallerDataForTypePositionInfo(CustomTypeMarshallers marshallers, TypePositionInfo info, StubCodeContext context)
151
CustomTypeMarshallerData
marshallerData = GetMarshallerDataForTypePositionInfo(marshalInfo.Marshallers, info, context);
209
CustomTypeMarshallerData
marshallerData,
392
private static ElementsMarshalling CreateElementsMarshalling(
CustomTypeMarshallerData
marshallerData, IBoundMarshallingGenerator elementMarshaller, TypeSyntax unmanagedElementType, IElementsMarshallingCollectionSource collectionSource)
MarshallingAttributeInfo.cs (2)
151
foreach (KeyValuePair<MarshalMode,
CustomTypeMarshallerData
> mode in Marshallers.Modes)
187
new CustomTypeMarshallers(ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
>.Empty.Add(
SafeHandleMarshallingInfoProvider.cs (1)
79
Modes = ImmutableDictionary<MarshalMode,
CustomTypeMarshallerData
>.Empty