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