1 write to ByValueContentsMarshalKind
Microsoft.Interop.SourceGeneration (1)
TypePositionInfo.cs (1)
96
ByValueContentsMarshalKind
= byValueContentsMarshalKind,
20 references to ByValueContentsMarshalKind
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
20
if (!info.IsManagedExceptionPosition && !info.IsManagedReturnPosition && (info.IsByRef || info.
ByValueContentsMarshalKind
!= ByValueContentsMarshalKind.Default))
Microsoft.Interop.SourceGeneration (19)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
217
RefKind = CreateElementRefKind(info.RefKind, info.
ByValueContentsMarshalKind
)
Marshalling\ByValueContentsMarshalKindValidator.cs (2)
9
/// An <see cref="IMarshallingGeneratorResolver"/> implementation that wraps an inner <see cref="IMarshallingGeneratorResolver"/> instance and validates that the <see cref="TypePositionInfo.
ByValueContentsMarshalKind
"/> on the provided <see cref="TypePositionInfo"/> is valid in the current marshalling scenario.
37
var support = generator.Generator.SupportsByValueMarshalKind(generator.Generator.TypeInfo.
ByValueContentsMarshalKind
, out GeneratorDiagnostic? diagnostic);
Marshalling\CustomTypeMarshallingGenerator.cs (2)
92
=> TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out)
93
&& byValueContentsMarshallingSupport.GetSupport(TypeInfo.
ByValueContentsMarshalKind
, TypeInfo, out _) != ByValueMarshalKindSupport.NotSupported
Marshalling\ElementsMarshalling.cs (2)
448
if (CollectionSource.CodeContext.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.
ByValueContentsMarshalKind
is ByValueContentsMarshalKind.Out)
605
return context.ElementIndirectionLevel != 0 || info.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out || info.RefKind == RefKind.Out || info.IsNativeReturnPosition;
Marshalling\MarshallingGeneratorExtensions.cs (2)
116
if (info.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.In))
120
if (info.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
Marshalling\StatefulMarshallingStrategy.cs (5)
362
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
370
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
397
|| TypeInfo.
ByValueContentsMarshalKind
!= ByValueContentsMarshalKind.Default)
424
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
432
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
Marshalling\StatelessMarshallingStrategy.cs (5)
440
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
653
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)
662
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
700
if (CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
.HasFlag(ByValueContentsMarshalKind.Out))
708
if (CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.IsByRef && TypeInfo.
ByValueContentsMarshalKind
== ByValueContentsMarshalKind.Out)