4 references to CastToManagedIfNecessary
Microsoft.Interop.SourceGeneration (4)
Marshalling\ElementsMarshalling.cs (4)
105string destination = CastToManagedIfNecessary($"{MemoryMarshalType}.CreateSpan(ref {MemoryMarshalType}.GetReference({source}), {source}.Length)"); 111string destination = CastToManagedIfNecessary(CollectionSource.GetUnmanagedValuesDestination(context)); 117string source = CastToManagedIfNecessary(CollectionSource.GetUnmanagedValuesDestination(context)); 125string source = CastToManagedIfNecessary(CollectionSource.GetUnmanagedValuesSource(context));