ArraySegment<T>.GetEnumerator 方法

定义

返回一个可用于循环访问数组段的枚举器。Returns an enumerator that can be used to iterate through the array segment.

public:
 ArraySegment<T>::Enumerator GetEnumerator();
public ArraySegment<T>.Enumerator GetEnumerator ();
member this.GetEnumerator : unit -> ArraySegment<'T>.Enumerator
Public Function GetEnumerator () As ArraySegment(Of T).Enumerator

返回

一个枚举器,可用于循环访问数组段。An enumerator that can be used to iterate through the array segment.

异常

基础数组为 nullThe underlying array is null.

适用于