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)
164if (ShouldCleanUpAllElements(CollectionSource.TypeInfo, CollectionSource.CodeContext)) 207bool usesLastIndexMarshalled = UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.CodeContext); 225string source = MarshallerHelpers.GetMarshalDirection(CollectionSource.TypeInfo, CollectionSource.CodeContext) == MarshalDirection.ManagedToUnmanaged 242if (CollectionSource.CodeContext.Direction is MarshalDirection.UnmanagedToManaged && CollectionSource.TypeInfo.ByValueContentsMarshalKind is ByValueContentsMarshalKind.Out) 270StubCodeContext elementCodeContext = StubCodeContext.CreateElementMarshallingContext(CollectionSource.CodeContext); 335if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.CodeContext) 362if (UsesLastIndexMarshalled(CollectionSource.TypeInfo, CollectionSource.CodeContext))