ImmutableList<T>.Enumerator 结构 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举二进制树的内容。
NuGet package: System.Collections.Immutable(关于不可变集合和安装方法)
public: value class ImmutableList<T>::Enumerator : System::Collections::Generic::IEnumerator<T>
	public struct ImmutableList<T>.Enumerator : System.Collections.Generic.IEnumerator<T>
	type ImmutableList<'T>.Enumerator = struct
    interface IEnumerator<'T>
    interface IEnumerator
    interface IDisposable
	type ImmutableList<'T>.Enumerator = struct
    interface IEnumerator<'T>
    interface IDisposable
    interface IEnumerator
	Public Structure ImmutableList(Of T).Enumerator
Implements IEnumerator(Of T)
    类型参数
- T
 
- 继承
 
- 实现
 
注解
此结构应与其他两个二进制树枚举器保持同步: System.Collections.Immutable.ImmutableSortedDictionary<TKey,TValue>.Enumerator 和 System.Collections.Immutable.ImmutableSortedSet<T>.Enumerator。
注意
当此枚举器用作值类型 (即,当它未) 装箱时,请勿通过将它分配给第二个变量或将其传递给另一个方法来复制它。 释放此枚举器时,它会将可变引用类型堆栈返回到资源池,如果复制值类型枚举器 (如果传递) 的值,则很容易无意中发生,则存在已返回到资源池的堆栈可能仍被枚举器副本之一使用的风险。 导致数据损坏或异常。
属性
| Current | 
		 获取枚举数当前位置的元素。  | 
        	
方法
| Dispose() | 
		 释放 ImmutableList<T>.Enumerator 类的当前实例使用的资源。  | 
        	
| MoveNext() | 
		 将枚举推进到不可变列表的下一个元素。  | 
        	
| Reset() | 
		 将枚举器设置到其初始位置,该位置位于不可变列表中的第一个元素之前。  | 
        	
显式接口实现
| IEnumerator.Current | 
		 当前元素。  | 
        	
适用于
线程安全性
此类型是线程安全的。