2 implementations of GetUnmanagedValuesSource
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
155public string GetUnmanagedValuesSource(StubIdentifierContext context)
Marshalling\StatelessMarshallingStrategy.cs (1)
287public string GetUnmanagedValuesSource(StubIdentifierContext context)
5 references to GetUnmanagedValuesSource
Microsoft.Interop.SourceGeneration (5)
Marshalling\ElementsMarshalling.cs (5)
103string source = CollectionSource.GetUnmanagedValuesSource(context); 124string source = CastToManagedIfNecessary(CollectionSource.GetUnmanagedValuesSource(context)); 179writer.WriteLine($"{TypeNames.System_ReadOnlySpan}<{unmanagedElementType}> {nativeSpanIdentifier} = {CollectionSource.GetUnmanagedValuesSource(context)};"); 226: CollectionSource.GetUnmanagedValuesSource(context); 253writer.WriteLine($"{TypeNames.System_Span}<{unmanagedElementType}> {nativeSpanIdentifier} = {MemoryMarshalType}.CreateSpan(ref {UnsafeType}.AsRef(in {CollectionSource.GetUnmanagedValuesSource(context)}.GetPinnableReference()), {numElementsIdentifier});");