30 references to IsByRef
Microsoft.Interop.ComInterfaceGenerator (3)
ComMethodContext.cs (1)
148
=> info.
IsByRef
Marshallers\StructAsHResultMarshallerFactory.cs (2)
81
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
86
if (info.
IsByRef
)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
19
if (info.
IsByRef
|| info.ByValueContentsMarshalKind != ByValueContentsMarshalKind.Default)
Microsoft.Interop.SourceGeneration (26)
ManagedToNativeStubGenerator.cs (1)
84
noMarshallingNeeded &= (generator.IsBlittable() && !generator.TypeInfo.
IsByRef
) || generator.IsForwarder();
Marshalling\BlittableMarshaller.cs (6)
21
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
26
if (!info.
IsByRef
)
39
if (!info.
IsByRef
|| codeContext.IsInStubReturnPosition(info))
72
if (direction is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional && info.
IsByRef
)
83
if (direction is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional && info.
IsByRef
)
99
return info.
IsByRef
&& !context.IsInStubReturnPosition(info) && !context.SingleFrameSpansNativeContext;
Marshalling\BoolMarshaller.cs (2)
37
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
42
if (info.
IsByRef
)
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
73
if (info.
IsByRef
)
Marshalling\CharMarshaller.cs (5)
28
else if (info.
IsByRef
)
44
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
93
if (info.
IsByRef
)
126
return !IsPinningPathSupported(info, context) && (elementMarshalDirection != MarshalDirection.ManagedToUnmanaged || info.
IsByRef
);
133
&& info.
IsByRef
;
Marshalling\DelegateMarshaller.cs (2)
22
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
27
return info.
IsByRef
? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Marshalling\MarshallerHelpers.cs (5)
107
return context.SingleFrameSpansNativeContext && (!info.
IsByRef
|| info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter);
311
if (!info.
IsByRef
)
333
if (!info.
IsByRef
)
387
if (countInfo.ElementInfo.
IsByRef
&& countInfo.ElementInfo.RefKind is RefKind.Out)
422
if (typeInfo.
IsByRef
)
Marshalling\MarshallingGeneratorExtensions.cs (4)
85
ValueBoundaryBehavior.ManagedIdentifier => generator.TypeInfo.
IsByRef
? param : managed,
145
ValueBoundaryBehavior.ManagedIdentifier when !info.
IsByRef
=> Argument(IdentifierName(managedIdentifier)),
146
ValueBoundaryBehavior.ManagedIdentifier when info.
IsByRef
=> Argument(IdentifierName(managedIdentifier)).WithRefKindKeyword(MarshallerHelpers.GetManagedArgumentRefKindKeyword(info)),
158
if (info.
IsByRef
)