AwaitExpressionInfo.RuntimeAwaitMethod Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When runtime async is enabled for this await expression, this represents either:
-
A call to
System.Runtime.CompilerServices.AsyncHelpers.Await, if this is a supported task type. In such cases, GetAwaiterMethod, IsCompletedProperty, and GetResultMethod will benull. -
A call to
System.Runtime.CompilerServices.AsyncHelpers.AwaitAwaiter|UnsafeAwaitAwaiter. In these cases, the other properties may be non-nullif the the rest of the await expression is successfully bound.
public Microsoft.CodeAnalysis.IMethodSymbol? RuntimeAwaitMethod { get; }
member this.RuntimeAwaitMethod : Microsoft.CodeAnalysis.IMethodSymbol
Public ReadOnly Property RuntimeAwaitMethod As IMethodSymbol