CollectionsMarshal.AsSpan<T>(List<T>) 메서드

정의

목록에 있는 데이터에 대한 Span<T> 뷰를 가져옵니다. Span<T>가 사용 중인 동안에는 List<T>에서 항목을 추가하거나 제거할 수 없습니다.

public:
generic <typename T>
 static Span<T> AsSpan(System::Collections::Generic::List<T> ^ list);
public static Span<T> AsSpan<T> (System.Collections.Generic.List<T>? list);
static member AsSpan : System.Collections.Generic.List<'T> -> Span<'T>
Public Shared Function AsSpan(Of T) (list As List(Of T)) As Span(Of T)

형식 매개 변수

T

목록에 있는 항목의 형식입니다.

매개 변수

list
List<T>

를 만들 목록입니다 Span<T>.

반환

Span<T> 대한 List<T>instance.

적용 대상