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