22 references to GetMarshalDirection
Microsoft.Interop.ComInterfaceGenerator (2)
Marshallers\StructAsHResultMarshallerFactory.cs (2)
39if (MarshallerHelpers.GetMarshalDirection(info, codeContext) is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional) 57if (MarshallerHelpers.GetMarshalDirection(info, codeContext) is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional)
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSGeneratorFactory.cs (2)
29if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.ManagedIndex == TypePositionInfo.UnsetIndex) 48bool isToJs = MarshallerHelpers.GetMarshalDirection(info, context) == MarshalDirection.ManagedToUnmanaged;
Marshaling\BaseJSGenerator.cs (1)
39MarshalDirection marshalDirection = MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext);
Marshaling\PrimitiveJSGenerator.cs (1)
24MarshalDirection marshalDirection = MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext);
Microsoft.Interop.SourceGeneration (16)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (3)
133MarshalDirection elementDirection = MarshallerHelpers.GetMarshalDirection(info, context); 231if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.ManagedToUnmanaged) 419MarshalDirection elementDirection = MarshallerHelpers.GetMarshalDirection(info, context);
Marshalling\BlittableMarshaller.cs (1)
65MarshalDirection direction = MarshallerHelpers.GetMarshalDirection(info, codeContext);
Marshalling\BoolMarshaller.cs (1)
52MarshalDirection elementMarshalDirection = MarshallerHelpers.GetMarshalDirection(info, codeContext);
Marshalling\CharMarshaller.cs (2)
82MarshalDirection elementMarshalDirection = MarshallerHelpers.GetMarshalDirection(info, codeContext); 125MarshalDirection elementMarshalDirection = MarshallerHelpers.GetMarshalDirection(info, context);
Marshalling\CustomTypeMarshallingGenerator.cs (1)
28MarshalDirection elementMarshalDirection = MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext);
Marshalling\DelegateMarshaller.cs (1)
32MarshalDirection elementMarshalDirection = MarshallerHelpers.GetMarshalDirection(info, codeContext);
Marshalling\ElementsMarshalling.cs (2)
399MarshallerHelpers.GetMarshalDirection(CollectionSource.TypeInfo, CollectionSource.CodeContext) == MarshalDirection.ManagedToUnmanaged 593bool onlyUnmarshals = MarshallerHelpers.GetMarshalDirection(info, context) == MarshalDirection.UnmanagedToManaged;
Marshalling\MarshallerHelpers.cs (1)
334return GetMarshalDirection(info, context) switch
Marshalling\StatefulMarshallingStrategy.cs (1)
396if (MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext) is not MarshalDirection.ManagedToUnmanaged
Marshalling\StatelessMarshallingStrategy.cs (3)
322if (MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext) != MarshalDirection.ManagedToUnmanaged) 340if (MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext) == MarshalDirection.ManagedToUnmanaged) 581if (countInfo is NoCountInfo && MarshallerHelpers.GetMarshalDirection(TypeInfo, CodeContext) == MarshalDirection.ManagedToUnmanaged)