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