語言

ForEachStatementInfo 結構

定義

包含每個語句中所有語意資訊的結構。

public value class ForEachStatementInfo : IEquatable<Microsoft::CodeAnalysis::CSharp::ForEachStatementInfo>
public struct ForEachStatementInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.ForEachStatementInfo>
public readonly struct ForEachStatementInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.ForEachStatementInfo>
type ForEachStatementInfo = struct
Public Structure ForEachStatementInfo
Implements IEquatable(Of ForEachStatementInfo)
繼承
ForEachStatementInfo
實作

屬性

名稱 Description
CurrentConversion

從 的 CurrentProperty 類型轉換到 ElementType。

CurrentProperty

取得「目前」屬性。

DisposeAwaitableInfo

在非同步的 foreach 中獲得期待的資訊 DisposeMethod 。 default 如果這是同步的 foreach。

DisposeMethod

取得「Dispose」方法(或非同步 foreach 中的「DisposeAsync」)。

ElementConversion

從 轉換為 ElementType 迭代變數類型。

ElementType

在轉換為迭代變數類型之前,先將輸出 CurrentProperty 轉換成中間型態。

GetEnumeratorMethod

會用「GetEnumerator」方法。

IsAsynchronous

這是否是一個非同步的 foreach。

MoveNextAwaitableInfo

在非同步的 foreach 中獲得期待的資訊 MoveNextMethod 。 default 如果這是同步的 foreach。

MoveNextMethod

會取得「MoveNext」方法(或非同步 foreach 中的「MoveNextAsync」)。

方法

名稱 Description
Equals(ForEachStatementInfo)

包含每個語句中所有語意資訊的結構。

Equals(Object)

包含每個語句中所有語意資訊的結構。

GetHashCode()

包含每個語句中所有語意資訊的結構。

適用於