共用方式為


ForEachStatementInfo.DisposeMethod Property

Definition

Gets the "Dispose" method (or "DisposeAsync" in an asynchronous foreach).

public:
 property Microsoft::CodeAnalysis::IMethodSymbol ^ DisposeMethod { Microsoft::CodeAnalysis::IMethodSymbol ^ get(); };
public Microsoft.CodeAnalysis.IMethodSymbol DisposeMethod { get; }
public Microsoft.CodeAnalysis.IMethodSymbol? DisposeMethod { get; }
member this.DisposeMethod : Microsoft.CodeAnalysis.IMethodSymbol
Public ReadOnly Property DisposeMethod As IMethodSymbol

Property Value

Applies to