2 writes to ToManaged
Microsoft.Interop.SourceGeneration (2)
MarshallerShape.cs (2)
162ToManaged = allocateManaged, 190ToManaged = toManaged,
8 references to ToManaged
Microsoft.Interop.LibraryImportGenerator (6)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (4)
828if (methods.ToManaged is null && methods.ToManagedFinally is null) 913IMethodSymbol toManagedMethod = methods.ToManaged ?? methods.ToManagedFinally; 934if (!SymbolEqualityComparer.Default.Equals(methods.ToManaged.Parameters[1].Type, methods.ToManagedFinally.Parameters[1].Type)) 936diagnosticReporter.CreateAndReportDiagnostic(FirstParametersMustMatchRule, methods.ToManaged.ToDisplayString(), methods.ToManagedFinally.ToDisplayString());
Analyzers\CustomMarshallerAttributeFixer.cs (2)
361else if (methods.ToManaged is not null) 363unmanagedType = methods.ToManaged.Parameters[0].Type;
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (2)
508else if (methods.ToManaged is not null) 510nativeType = methods.ToManaged.Parameters[0].Type;