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