ICollectionExpressionOperation.ConstructArguments 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.
Arguments passed to to ConstructMethod, if present. Arguments are in evaluation order. This can
be an empty array. Will never be default. If the arguments successfully bound, these will all be
IArgumentOperation; otherwise, they can be any operation.
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)
Property Value
Remarks
If the invocation is in its expanded form, then params/ParamArray arguments would be collected into arrays. Default values are supplied for optional arguments missing in source.
If this is a collection builder method, this will include all arguments to the method, except for the final ReadOnlySpan argument that receives the collection elements. That final argument will be represented by an IArgumentOperation whose 'Value' is an ICollectionExpressionElementsPlaceholderOperation. The actual elements passed to the creation method are contained in Elements.