2 writes to ToUnmanaged
Microsoft.Interop.SourceGeneration (2)
MarshallerShape.cs (2)
138
ToUnmanaged
= allocateUnmanaged,
188
ToUnmanaged
= toUnmanaged,
9 references to ToUnmanaged
Microsoft.Interop.LibraryImportGenerator (7)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (5)
770
if (methods.
ToUnmanaged
is null && methods.ToUnmanagedWithBuffer is null)
885
IMethodSymbol toUnmanagedMethod = methods.
ToUnmanaged
?? methods.ToUnmanagedWithBuffer;
903
if (!SymbolEqualityComparer.Default.Equals(methods.
ToUnmanaged
.ReturnType, methods.ToUnmanagedWithBuffer.ReturnType))
905
diagnosticReporter.CreateAndReportDiagnostic(ReturnTypesMustMatchRule, methods.
ToUnmanaged
.ToDisplayString(), methods.ToUnmanagedWithBuffer.ToDisplayString());
918
diagnosticReporter.CreateAndReportDiagnostic(FirstParameterMustMatchReturnTypeRule, toManagedMethod.ToDisplayString(), (methods.
ToUnmanaged
?? methods.ToUnmanagedWithBuffer).ToDisplayString());
Analyzers\CustomMarshallerAttributeFixer.cs (2)
353
if (methods.
ToUnmanaged
is not null)
355
unmanagedType = methods.
ToUnmanaged
.ReturnType;
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (2)
475
else if (methods.
ToUnmanaged
is not null)
477
nativeType = methods.
ToUnmanaged
.ReturnType;