Share via


ICollectionExpressionOperation.ConstructMethod Property

Definition

Method used to construct the collection.

If the collection type is an array, span, array interface, or type parameter, the method is null; if the collection type has a [CollectionBuilder] attribute, the method is the builder method; otherwise, the method is the collection type constructor.

public Microsoft.CodeAnalysis.IMethodSymbol? ConstructMethod { get; }
member this.ConstructMethod : Microsoft.CodeAnalysis.IMethodSymbol
Public ReadOnly Property ConstructMethod As IMethodSymbol

Property Value

Applies to