47 references to IsByRef
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceGenerator.cs (2)
809indexArgList = string.Join(", ", managedParams.Take(indexCount).Select(mp => $"{(mp.IsByRef ? $"{MarshallerHelpers.GetManagedArgumentRefKindKeyword(mp)} " : "")}{mp.InstanceIdentifier}")); 869+ $"({string.Join(", ", sigContext.ManagedParameters.Select(mp => $"{(mp.IsByRef ? $"{MarshallerHelpers.GetManagedArgumentRefKindKeyword(mp)} " : "")}{mp.InstanceIdentifier}"))})";
Marshallers\StructAsHResultMarshallerFactory.cs (2)
52return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 57if (info.IsByRef)
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSGeneratorFactory.cs (1)
20if (!info.IsErrorHandlingPosition && !info.IsManagedReturnPosition && (info.IsByRef || info.ByValueContentsMarshalKind != ByValueContentsMarshalKind.Default))
Marshaling\BaseJSGenerator.cs (2)
18public SignatureBehavior NativeSignatureBehavior => TypeInfo.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 20public ValueBoundaryBehavior ValueBoundaryBehavior => TypeInfo.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Microsoft.Interop.SourceGeneration (40)
ManagedToNativeStubGenerator.cs (1)
77noMarshallingNeeded &= (generator.IsBlittable() && !generator.TypeInfo.IsByRef) || generator.IsForwarder();
Marshalling\BlittableMarshaller.cs (6)
15return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 20if (!info.IsByRef) 33if (!info.IsByRef || codeContext.IsInStubReturnPosition(info)) 54if (direction is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional && info.IsByRef) 61if (direction is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional && info.IsByRef) 73return info.IsByRef && !context.IsInStubReturnPosition(info) && !context.SingleFrameSpansNativeContext;
Marshalling\BoolMarshaller.cs (2)
32return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 37if (info.IsByRef)
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
64if (info.IsByRef)
Marshalling\CharMarshaller.cs (5)
23else if (info.IsByRef) 39return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 72if (info.IsByRef) 94return !IsPinningPathSupported(info, context) && (elementMarshalDirection != MarshalDirection.ManagedToUnmanaged || info.IsByRef); 101&& info.IsByRef;
Marshalling\CustomTypeMarshallingGenerator.cs (3)
12public ValueBoundaryBehavior ValueBoundaryBehavior => TypeInfo.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier; 16public SignatureBehavior NativeSignatureBehavior => TypeInfo.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 91&& !TypeInfo.IsByRef
Marshalling\DelegateMarshaller.cs (2)
15return info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 20return info.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Marshalling\IidParameterIndexMarshallerResolver.cs (2)
23public SignatureBehavior GetNativeSignatureBehavior(TypePositionInfo info) => info.IsByRef ? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType; 26=> info.IsByRef ? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Marshalling\MarshallerHelpers.cs (5)
94return context.SingleFrameSpansNativeContext && (!info.IsByRef || info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter); 270if (!info.IsByRef) 292if (!info.IsByRef) 346if (countInfo.ElementInfo.IsByRef && countInfo.ElementInfo.RefKind is RefKind.Out) 381if (typeInfo.IsByRef)
Marshalling\MarshallingGeneratorExtensions.cs (3)
72ValueBoundaryBehavior.ManagedIdentifier => generator.TypeInfo.IsByRef ? param : managed, 125ValueBoundaryBehavior.ManagedIdentifier when !info.IsByRef => managedIdentifier, 138return info.IsByRef
Marshalling\StatefulMarshallingStrategy.cs (4)
209if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out) 215if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 252if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 257if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StatelessMarshallingStrategy.cs (5)
253if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 381if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out) 386if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 415if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out)) 420if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
61return context.SingleFrameSpansNativeContext && !TypeInfo.IsByRef && !context.IsInStubReturnPosition(TypeInfo);