다음을 통해 공유


CollectionBuilderAttribute(Type, String) 생성자

정의

형식의 메서드 builderType 를 참조하는 의 CollectionBuilderAttribute 새 instance 초기화합니다methodName.

public:
 CollectionBuilderAttribute(Type ^ builderType, System::String ^ methodName);
public CollectionBuilderAttribute (Type builderType, string methodName);
new System.Runtime.CompilerServices.CollectionBuilderAttribute : Type * string -> System.Runtime.CompilerServices.CollectionBuilderAttribute
Public Sub New (builderType As Type, methodName As String)

매개 변수

builderType
Type

컬렉션을 생성하는 데 사용할 작성기의 형식입니다.

methodName
String

컬렉션을 생성하는 데 사용할 작성기의 메서드 이름입니다.

설명

methodName는 형식 ReadOnlySpan<T> 의 단일 매개 변수를 허용하고 해당 범위의 데이터 복사본을 포함하는 빌드되는 컬렉션의 instance 반환하는 정적 메서드를 참조해야 합니다. .NET의 향후 릴리스에서는 추가 패턴이 지원될 수 있습니다.

적용 대상