Implemented interface member:
property
CodeContext
Microsoft.Interop.ICustomTypeMarshallingStrategy.CodeContext
6 references to CodeContext
Microsoft.Interop.SourceGeneration (6)
Marshalling\StatefulMarshallingStrategy.cs (6)
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))
235
if (MarshallerHelpers.GetMarshalDirection(TypeInfo,
CodeContext
) is not MarshalDirection.ManagedToUnmanaged
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)
268
writer.WriteLine($"{numElementsIdentifier} = {ElementsMarshalling.GenerateNumElementsExpression(countInfo, castCountInfo,
CodeContext
, context)};");