语言

ICollectionExpressionOperation.ConstructArguments 属性

定义

传递给 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)

属性值

注解

如果调用采用扩展形式,则将 params/ParamArray 参数收集到数组中。 为源中缺少的可选参数提供默认值。

如果这是集合生成器方法,则此方法将包括该方法的所有参数,但接收集合元素的最终 ReadOnlySpan 参数除外。 最终参数将由其“Value”是一个ICollectionExpressionElementsPlaceholderOperation参数表示IArgumentOperation。 传递给创建方法的实际元素包含在内 Elements。

适用于