Udostępnij przez


AwaitExpressionInfo Struct

Definition

Structure containing all semantic information about an await expression.

public value class AwaitExpressionInfo : IEquatable<Microsoft::CodeAnalysis::CSharp::AwaitExpressionInfo>
public struct AwaitExpressionInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.AwaitExpressionInfo>
public readonly struct AwaitExpressionInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.AwaitExpressionInfo>
type AwaitExpressionInfo = struct
Public Structure AwaitExpressionInfo
Implements IEquatable(Of AwaitExpressionInfo)
Inheritance
AwaitExpressionInfo
Implements

Properties

Name Description
GetAwaiterMethod
GetResultMethod
IsCompletedProperty
IsDynamic
RuntimeAwaitMethod

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 be null.
  • A call to System.Runtime.CompilerServices.AsyncHelpers.AwaitAwaiter|UnsafeAwaitAwaiter. In these cases, the other properties may be non-null if the the rest of the await expression is successfully bound.

Methods

Name Description
Equals(AwaitExpressionInfo)
Equals(Object)
GetHashCode()

Applies to