Implemented interface member:
property
CodeContext
Microsoft.Interop.ICustomTypeMarshallingStrategy.CodeContext
10 references to CodeContext
Microsoft.Interop.SourceGeneration (10)
Marshalling\StatelessMarshallingStrategy.cs (10)
319
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is not StubIdentifierContext.Stage.CleanupCallerAllocated)
322
if (MarshallerHelpers.GetMarshalDirection(TypeInfo,
CodeContext
) != MarshalDirection.ManagedToUnmanaged)
331
ElementsMarshalling.GenerateNumElementsExpression(countInfo, countInfoRequiresCast,
CodeContext
, context)));
337
if (MarshallerHelpers.GetCleanupStage(TypeInfo,
CodeContext
) is not StubIdentifierContext.Stage.CleanupCalleeAllocated)
340
if (MarshallerHelpers.GetMarshalDirection(TypeInfo,
CodeContext
) == MarshalDirection.ManagedToUnmanaged)
352
ElementsMarshalling.GenerateNumElementsExpression(countInfo, countInfoRequiresCast,
CodeContext
, context)));
367
ElementsMarshalling.GenerateNumElementsExpression(countInfo, countInfoRequiresCast,
CodeContext
, context)));
392
&& MarshallerHelpers.CanUseCallerAllocatedBuffer(TypeInfo,
CodeContext
)))
440
if (
CodeContext
.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.IsByRef && TypeInfo.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
455
ElementsMarshalling.GenerateNumElementsExpression(countInfo, countInfoRequiresCast,
CodeContext
, context)));