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