Implemented interface member:
property
CodeContext
Microsoft.Interop.ICustomTypeMarshallingStrategy.CodeContext
11 references to CodeContext
Microsoft.Interop.SourceGeneration (11)
Marshalling\StatelessMarshallingStrategy.cs (11)
329
if (!
CodeContext
.AdditionalTemporaryStateLivesAcrossStages)
332
if (countInfo is NoCountInfo && MarshallerHelpers.GetMarshalDirection(TypeInfo,
CodeContext
) == MarshalDirection.ManagedToUnmanaged)
340
writer.WriteLine($"{numElementsIdentifier} = {ElementsMarshalling.GenerateNumElementsExpression(countInfo, castCountInfo,
CodeContext
, context)};");
346
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is StubIdentifierContext.Stage.CleanupCallerAllocated)
363
if (!
CodeContext
.AdditionalTemporaryStateLivesAcrossStages)
366
writer.WriteLine($"{numElementsIdentifier} = {ElementsMarshalling.GenerateNumElementsExpression(countInfo, castCountInfo,
CodeContext
, context)};");
371
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is StubIdentifierContext.Stage.CleanupCallerAllocated)
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)