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