43 references to IsByRef
Microsoft.Interop.ComInterfaceGenerator (2)
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.LibraryImportGenerator (1)
PInvokeStubCodeGenerator.cs (1)
75noMarshallingNeeded &= generator is { Generator: BlittableMarshaller, TypeInfo.IsByRef: false }
Microsoft.Interop.SourceGeneration (39)
Marshalling\BlittableMarshaller.cs (6)
21return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 26if (!info.IsByRef) 39if (!info.IsByRef || context.IsInStubReturnPosition(info)) 72if (elementMarshalling is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional && info.IsByRef) 83if (elementMarshalling 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)
74if (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\CustomTypeMarshallingGenerator.cs (3)
28return info.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier; 38return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 111&& !info.IsByRef
Marshalling\DelegateMarshaller.cs (2)
22return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 27return info.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Marshalling\ElementsMarshalling.cs (1)
472RefKind = info.IsByRef ? info.RefKind : info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(),
Marshalling\MarshallerHelpers.cs (5)
91return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter); 295if (!info.IsByRef) 317if (!info.IsByRef) 371if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 406if (typeInfo.IsByRef)
Marshalling\MarshallingGeneratorExtensions.cs (4)
86ValueBoundaryBehavior.ManagedIdentifier => info.IsByRef ? param : managed, 145ValueBoundaryBehavior.ManagedIdentifier when !info.IsByRef => Argument(IdentifierName(managedIdentifier)), 146ValueBoundaryBehavior.ManagedIdentifier when info.IsByRef => Argument(IdentifierName(managedIdentifier)).WithRefKindKeyword(MarshallerHelpers.GetManagedArgumentRefKindKeyword(info)), 157if (info.IsByRef)
Marshalling\StatefulMarshallingStrategy.cs (4)
394if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.IsByRef && info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out) 402if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 449if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 457if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.IsByRef && info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StatelessMarshallingStrategy.cs (5)
463if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 672if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.IsByRef && info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out) 681if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 719if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.IsByRef && info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 727if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.IsByRef && info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
73return context.SingleFrameSpansNativeContext && !info.IsByRef && !context.IsInStubReturnPosition(info);