2 writes to ToManagedFinally
Microsoft.Interop.SourceGeneration (2)
MarshallerShape.cs (2)
163
ToManagedFinally
= allocateManagedGuaranteed,
191
ToManagedFinally
= toManagedFinally
8 references to ToManagedFinally
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)
365
else if (methods.
ToManagedFinally
is not null)
367
unmanagedType = methods.
ToManagedFinally
.Parameters[0].Type;
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (2)
504
if (methods.
ToManagedFinally
is not null)
506
nativeType = methods.
ToManagedFinally
.Parameters[0].Type;