Implemented interface member:
property
CodeContext
Microsoft.Interop.ICustomTypeMarshallingStrategy.CodeContext
11 references to CodeContext
Microsoft.Interop.SourceGeneration (11)
Marshalling\StatelessMarshallingStrategy.cs (11)
578
if (!
CodeContext
.AdditionalTemporaryStateLivesAcrossStages)
581
if (countInfo is NoCountInfo && MarshallerHelpers.GetMarshalDirection(TypeInfo,
CodeContext
) == MarshalDirection.ManagedToUnmanaged)
601
ElementsMarshalling.GenerateNumElementsExpression(countInfo, castCountInfo,
CodeContext
, context)));
607
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is StubIdentifierContext.Stage.CleanupCallerAllocated)
627
if (!
CodeContext
.AdditionalTemporaryStateLivesAcrossStages)
635
ElementsMarshalling.GenerateNumElementsExpression(countInfo, castCountInfo,
CodeContext
, context)));
640
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is StubIdentifierContext.Stage.CleanupCallerAllocated)
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)