ICollectionExpressionOperation.ConstructArguments 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若有,則將參數傳遞至 ConstructMethod。 論點依評估順序排列。 這可以是一個空陣列。 永遠不會。default 若參數成功綁定,則皆為 IArgumentOperation;否則,它們可以是任意操作。
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.IOperation> ConstructArguments { get; }
member this.ConstructArguments : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.IOperation>
Public ReadOnly Property ConstructArguments As ImmutableArray(Of IOperation)
屬性值
備註
若調用為擴充形式,則參數/ParamArray 參數會被收集成陣列。 預設值會提供給原始碼中缺少的可選參數。
如果這是集合建構方法,則會包含方法的所有參數,除了 ReadOnlySpan 最後一個接收集合元素的參數。 該最後一個參數將以 IArgumentOperation 一個「值」為 ICollectionExpressionElementsPlaceholderOperation的 表示。 實際傳送給建立方法的元素包含在 Elements中。