ImmutableArray<T>.IEnumerable.GetEnumerator 方法

定义

返回一个循环访问不可变数组的枚举器。Returns an enumerator that iterates through the immutable array.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

返回

IEnumerator

一个循环访问不可变数组的枚举器。An enumerator that iterates through the immutable array.

实现

例外

IsDefault 属性返回 trueThe IsDefault property returns true.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableArray<T> 实例被强制转换为 IEnumerable 接口时使用。It can be used only when the ImmutableArray<T> instance is cast to an IEnumerable interface.

适用于