CollectionBuilderAttribute.MethodName 属性

定义

获取用于构造集合的生成器上的方法的名称。

public:
 property System::String ^ MethodName { System::String ^ get(); };
public string MethodName { get; }
member this.MethodName : string
Public ReadOnly Property MethodName As String

属性值

注解

这应与目标方法的元数据名称匹配。 例如,如果针对类型的构造函数,则这可能是“.ctor”。

适用于