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