2 implementations of CodeContext
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
141
public StubCodeContext
CodeContext
=> codeContext;
Marshalling\StatelessMarshallingStrategy.cs (1)
272
public StubCodeContext
CodeContext
=> codeContext;
7 references to CodeContext
Microsoft.Interop.SourceGeneration (7)
Marshalling\ElementsMarshalling.cs (7)
163
if (ShouldCleanUpAllElements(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))
206
bool usesLastIndexMarshalled = UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
);
224
string source = MarshallerHelpers.GetMarshalDirection(CollectionSource.TypeInfo, CollectionSource.
CodeContext
) == MarshalDirection.ManagedToUnmanaged
241
if (CollectionSource.
CodeContext
.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out)
269
StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(CollectionSource.
CodeContext
);
334
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
)
361
if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.
CodeContext
))