1 write to ByValueContentsMarshalKind
Microsoft.Interop.SourceGeneration (1)
TypePositionInfo.cs (1)
93
ByValueContentsMarshalKind
= GetByValueContentsMarshalKind(paramSymbol.GetAttributes(), compilation),
19 references to ByValueContentsMarshalKind
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
20
if (!info.IsErrorHandlingPosition && !info.IsManagedReturnPosition && (info.IsByRef || info.
ByValueContentsMarshalKind
!= ByValueContentsMarshalKind.Default))
Microsoft.Interop.SourceGeneration (18)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
201
RefKind = CreateElementRefKind(info.RefKind, info.
ByValueContentsMarshalKind
)
Marshalling\ByValueContentsMarshalKindValidator.cs (1)
37
var support = generator.Generator.SupportsByValueMarshalKind(generator.Generator.TypeInfo.
ByValueContentsMarshalKind
, out GeneratorDiagnostic? diagnostic);
Marshalling\CustomTypeMarshallingGenerator.cs (2)
89
=> TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out)
90
&& byValueContentsMarshallingSupport.GetSupport(TypeInfo.
ByValueContentsMarshalKind
, TypeInfo, out _) != ByValueMarshalKindSupport.NotSupported
Marshalling\ElementsMarshalling.cs (2)
241
if (CollectionSource.CodeContext.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.
ByValueContentsMarshalKind
is ByValueContentsMarshalKind.Out)
356
return context.ElementIndirectionLevel != 0 || info.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out || info.RefKind == RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallingGeneratorExtensions.cs (2)
100
if (info.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.In))
104
if (info.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
Marshalling\StatefulMarshallingStrategy.cs (5)
209
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
215
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
236
|| TypeInfo.
ByValueContentsMarshalKind
!= ByValueContentsMarshalKind.Default)
252
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
257
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
Marshalling\StatelessMarshallingStrategy.cs (5)
253
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
381
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
386
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
415
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
420
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)