55 references to ValueBoundaryBehavior
Microsoft.Interop.ComInterfaceGenerator (13)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (2)
66
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.NativeIdentifier;
Marshallers\KeepAliveThisMarshaller.cs (2)
34
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (4)
57
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
94
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
Marshallers\ObjectUnwrapperResolver.cs (2)
61
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.NativeIdentifier;
Marshallers\StructAsHResultMarshallerFactory.cs (3)
84
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
88
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
91
return
ValueBoundaryBehavior
.NativeIdentifier;
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Marshaling\BaseJSGenerator.cs (1)
32
public
ValueBoundaryBehavior
ValueBoundaryBehavior => _inner.ValueBoundaryBehavior;
Marshaling\EmptyJSGenerator.cs (2)
15
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
Microsoft.Interop.SourceGeneration (39)
Marshalling\BlittableMarshaller.cs (4)
24
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
28
return
ValueBoundaryBehavior
.ManagedIdentifier;
32
return
ValueBoundaryBehavior
.NativeIdentifier;
34
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
Marshalling\BoolMarshaller.cs (3)
40
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
44
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
47
return
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\CharMarshaller.cs (5)
18
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
22
return
ValueBoundaryBehavior
.NativeIdentifier;
26
return
ValueBoundaryBehavior
.ManagedIdentifier;
30
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
33
return
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\CustomTypeMarshallingGenerator.cs (3)
16
public
ValueBoundaryBehavior
ValueBoundaryBehavior => TypeInfo.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\DelegateMarshaller.cs (3)
25
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
27
return info.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\Forwarder.cs (2)
22
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
24
return
ValueBoundaryBehavior
.ManagedIdentifier;
Marshalling\MarshallingGenerator.cs (2)
110
ValueBoundaryBehavior
ValueBoundaryBehavior { get; }
172
public
ValueBoundaryBehavior
ValueBoundaryBehavior => unbound.GetValueBoundaryBehavior(TypeInfo, context);
Marshalling\MarshallingGeneratorExtensions.cs (9)
85
ValueBoundaryBehavior
.ManagedIdentifier => generator.TypeInfo.IsByRef ? param : managed,
86
ValueBoundaryBehavior
.NativeIdentifier or
ValueBoundaryBehavior
.CastNativeIdentifier => native,
87
ValueBoundaryBehavior
.AddressOfNativeIdentifier => param,
145
ValueBoundaryBehavior
.ManagedIdentifier when !info.IsByRef => Argument(IdentifierName(managedIdentifier)),
146
ValueBoundaryBehavior
.ManagedIdentifier when info.IsByRef => Argument(IdentifierName(managedIdentifier)).WithRefKindKeyword(MarshallerHelpers.GetManagedArgumentRefKindKeyword(info)),
147
ValueBoundaryBehavior
.NativeIdentifier => Argument(IdentifierName(nativeIdentifier)),
148
ValueBoundaryBehavior
.AddressOfNativeIdentifier => Argument(PrefixUnaryExpression(SyntaxKind.AddressOfExpression, IdentifierName(nativeIdentifier))),
149
ValueBoundaryBehavior
.CastNativeIdentifier => Argument(CastExpression(generator.AsParameter(context).Type, IdentifierName(nativeIdentifier))),
Marshalling\StaticPinnableManagedValueMarshaller.cs (3)
23
public
ValueBoundaryBehavior
ValueBoundaryBehavior
33
return Interop.
ValueBoundaryBehavior
.NativeIdentifier;
37
return Interop.
ValueBoundaryBehavior
.CastNativeIdentifier;
VariableDeclarations.cs (5)
137
ValueBoundaryBehavior
boundaryBehavior = marshaller.ValueBoundaryBehavior;
144
(
ValueBoundaryBehavior
.NativeIdentifier or
ValueBoundaryBehavior
.CastNativeIdentifier))
147
if (boundaryBehavior !=
ValueBoundaryBehavior
.AddressOfNativeIdentifier)
167
if (boundaryBehavior !=
ValueBoundaryBehavior
.ManagedIdentifier)