24 references to GetMarshalDirection
Microsoft.Interop.ComInterfaceGenerator (2)
Marshallers\StructAsHResultMarshallerFactory.cs (2)
34
if (MarshallerHelpers.
GetMarshalDirection
(info, codeContext) is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional)
40
if (MarshallerHelpers.
GetMarshalDirection
(info, codeContext) is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional)
Microsoft.Interop.JavaScript.JSImportGenerator (6)
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)
32
MarshalDirection marshalDirection = MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext);
Marshaling\FuncJSGenerator.cs (1)
15
MarshalDirection marshalDirection = MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext);
Marshaling\PrimitiveJSGenerator.cs (1)
17
MarshalDirection marshalDirection = MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext);
Marshaling\TaskJSGenerator.cs (1)
14
MarshalDirection marshalDirection = MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext);
Microsoft.Interop.SourceGeneration (16)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (3)
117
MarshalDirection elementDirection = MarshallerHelpers.
GetMarshalDirection
(info, context);
215
if (MarshallerHelpers.
GetMarshalDirection
(info, context) != MarshalDirection.ManagedToUnmanaged)
378
MarshalDirection elementDirection = MarshallerHelpers.
GetMarshalDirection
(info, context);
Marshalling\BlittableMarshaller.cs (1)
47
MarshalDirection direction = MarshallerHelpers.
GetMarshalDirection
(info, codeContext);
Marshalling\BoolMarshaller.cs (1)
47
MarshalDirection elementMarshalDirection = MarshallerHelpers.
GetMarshalDirection
(info, codeContext);
Marshalling\CharMarshaller.cs (2)
61
MarshalDirection elementMarshalDirection = MarshallerHelpers.
GetMarshalDirection
(info, codeContext);
93
MarshalDirection elementMarshalDirection = MarshallerHelpers.
GetMarshalDirection
(info, context);
Marshalling\CustomTypeMarshallingGenerator.cs (1)
24
MarshalDirection elementMarshalDirection = MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext);
Marshalling\DelegateMarshaller.cs (1)
25
MarshalDirection elementMarshalDirection = MarshallerHelpers.
GetMarshalDirection
(info, codeContext);
Marshalling\ElementsMarshalling.cs (2)
224
string source = MarshallerHelpers.
GetMarshalDirection
(CollectionSource.TypeInfo, CollectionSource.CodeContext) == MarshalDirection.ManagedToUnmanaged
350
&& MarshallerHelpers.
GetMarshalDirection
(info, context) != MarshalDirection.UnmanagedToManaged;
Marshalling\MarshallerHelpers.cs (1)
320
return
GetMarshalDirection
(info, context) switch
Marshalling\StatefulMarshallingStrategy.cs (1)
235
if (MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext) is not MarshalDirection.ManagedToUnmanaged
Marshalling\StatelessMarshallingStrategy.cs (3)
182
&& MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext) != MarshalDirection.ManagedToUnmanaged)
192
&& MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext) != MarshalDirection.ManagedToUnmanaged)
332
if (countInfo is NoCountInfo && MarshallerHelpers.
GetMarshalDirection
(TypeInfo, CodeContext) == MarshalDirection.ManagedToUnmanaged)