CollectionBuilderAttribute.MethodName Property

Definition

Gets the name of the method on the builder to use to construct the collection.

C#
public string MethodName { get; }

Property Value

Remarks

This should match the metadata name of the target method. For example, this might be ".ctor" if targeting the type's constructor.

Applies to

Product Versions
.NET 8, 9, 10