60 references to ValueBoundaryBehavior
Microsoft.Interop.ComInterfaceGenerator (13)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (2)
47
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.NativeIdentifier;
Marshallers\KeepAliveThisMarshaller.cs (2)
22
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (4)
49
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
73
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.ManagedIdentifier;
Marshallers\ObjectUnwrapperResolver.cs (2)
44
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context) =>
ValueBoundaryBehavior
.NativeIdentifier;
Marshallers\StructAsHResultMarshallerFactory.cs (3)
55
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
59
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
62
return
ValueBoundaryBehavior
.NativeIdentifier;
Microsoft.Interop.JavaScript.JSImportGenerator (3)
Marshaling\BaseJSGenerator.cs (3)
20
public
ValueBoundaryBehavior
ValueBoundaryBehavior => TypeInfo.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Microsoft.Interop.SourceGeneration (44)
Marshalling\BlittableMarshaller.cs (4)
18
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
22
return
ValueBoundaryBehavior
.ManagedIdentifier;
26
return
ValueBoundaryBehavior
.NativeIdentifier;
28
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
Marshalling\BoolMarshaller.cs (3)
35
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
39
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
42
return
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\CharMarshaller.cs (5)
13
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
17
return
ValueBoundaryBehavior
.NativeIdentifier;
21
return
ValueBoundaryBehavior
.ManagedIdentifier;
25
return
ValueBoundaryBehavior
.AddressOfNativeIdentifier;
28
return
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\CustomTypeMarshallingGenerator.cs (3)
12
public
ValueBoundaryBehavior
ValueBoundaryBehavior => TypeInfo.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\DelegateMarshaller.cs (3)
18
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
20
return info.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\Forwarder.cs (2)
18
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
20
return
ValueBoundaryBehavior
.ManagedIdentifier;
Marshalling\IidParameterIndexMarshallerResolver.cs (3)
25
public
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context)
26
=> info.IsByRef ?
ValueBoundaryBehavior
.AddressOfNativeIdentifier :
ValueBoundaryBehavior
.NativeIdentifier;
Marshalling\MarshallingGenerator.cs (3)
104
ValueBoundaryBehavior
ValueBoundaryBehavior { get; }
166
public
ValueBoundaryBehavior
ValueBoundaryBehavior => unbound.GetValueBoundaryBehavior(TypeInfo, context);
211
ValueBoundaryBehavior
GetValueBoundaryBehavior(TypePositionInfo info, StubCodeContext context);
Marshalling\MarshallingGeneratorExtensions.cs (9)
72
ValueBoundaryBehavior
.ManagedIdentifier => generator.TypeInfo.IsByRef ? param : managed,
73
ValueBoundaryBehavior
.NativeIdentifier or
ValueBoundaryBehavior
.CastNativeIdentifier => native,
74
ValueBoundaryBehavior
.AddressOfNativeIdentifier => param,
125
ValueBoundaryBehavior
.ManagedIdentifier when !info.IsByRef => managedIdentifier,
126
ValueBoundaryBehavior
.ManagedIdentifier => $"{MarshallerHelpers.GetManagedArgumentRefKindKeyword(info)} {managedIdentifier}",
127
ValueBoundaryBehavior
.NativeIdentifier => nativeIdentifier,
128
ValueBoundaryBehavior
.AddressOfNativeIdentifier => $"&{nativeIdentifier}",
129
ValueBoundaryBehavior
.CastNativeIdentifier => $"({generator.AsParameter(context).Type}){nativeIdentifier}",
Marshalling\StaticPinnableManagedValueMarshaller.cs (3)
16
public
ValueBoundaryBehavior
ValueBoundaryBehavior
24
return Interop.
ValueBoundaryBehavior
.NativeIdentifier;
28
return Interop.
ValueBoundaryBehavior
.CastNativeIdentifier;
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
101
public
ValueBoundaryBehavior
ValueBoundaryBehavior => inner.ValueBoundaryBehavior;
VariableDeclarations.cs (5)
98
ValueBoundaryBehavior
boundaryBehavior = marshaller.ValueBoundaryBehavior;
100
&& boundaryBehavior is not (
ValueBoundaryBehavior
.NativeIdentifier or
ValueBoundaryBehavior
.CastNativeIdentifier))
103
if (boundaryBehavior !=
ValueBoundaryBehavior
.AddressOfNativeIdentifier)
115
if (boundaryBehavior !=
ValueBoundaryBehavior
.ManagedIdentifier && !marshaller.TypeInfo.IsErrorHandlingPosition)