ReadOnlyCollectionBuilder<T>.ToReadOnlyCollection ReadOnlyCollectionBuilder<T>.ToReadOnlyCollection ReadOnlyCollectionBuilder<T>.ToReadOnlyCollection ReadOnlyCollectionBuilder<T>.ToReadOnlyCollection Method

정의

가능하면 요소를 새 배열로 복사하지 않고 ReadOnlyCollection<T>의 모든 요소를 포함하는 ReadOnlyCollectionBuilder<T>을 만듭니다.Creates a ReadOnlyCollection<T> containing all of the elements of the ReadOnlyCollectionBuilder<T>, avoiding copying the elements to the new array if possible. ReadOnlyCollectionBuilder<T>을 만든 후에 ReadOnlyCollection<T>을 다시 설정합니다.Resets the ReadOnlyCollectionBuilder<T> after the ReadOnlyCollection<T> has been created.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<T> ^ ToReadOnlyCollection();
public System.Collections.ObjectModel.ReadOnlyCollection<T> ToReadOnlyCollection ();
member this.ToReadOnlyCollection : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Function ToReadOnlyCollection () As ReadOnlyCollection(Of T)

반환

적용 대상