The code in Figure 2 shows the enumerator.
图2中的代码表示枚举器。
The enumerator does not have exclusive access to the string.
枚举数对字符串的访问不是独占的。
Gets an enumerator for the processes that are being debugged.
获取正在调试的进程的枚举数。
The enumerator does not have exclusive access to the collection.
枚举数不具有对集合的独占访问权。
Gets an enumerator for all active steppers in the application domain.
获取应用程序域中程序集的枚举数。
This determines the formats that the resulting enumerator can enumerate.
这将确定生成的枚举数可以枚举的格式。
Returns an enumerator that iterates through the text elements of a string.
返回一个循环访问字符串的文本元素的枚举器。
Removing objects from the enumerator also removes them from the collection.
从枚举数中移除对象也会将这些对象从集合中移除。
For example, the initializer of an enumerator must be a constant expression.
例如,枚举成员的初始化式必须是常量表达式。
Sequence expressions involving 'let' and 'use' dispose of enumerator too eagerly
序列(Sequence)表达式引起了枚举器的‘let’和‘use’的销毁过程过早地发生;
Initially, the enumerator is positioned before the first item in the collection.
列举值一开始会位于集合中第一个项目之前。
Returns an enumerator that iterates through the text elements of the entire string.
传回可以逐一查看整个字串文字项目的列举值。
Initially, the enumerator is positioned before the first text element in the string.
最初,枚举数定位在字符串中第一个文本元素前。
Each value retrieved via the enumerator should correspond with one row of the resultset.
通过枚举器检索的每个值都应与结果集的一行对应。
The first and the second line resets the enumerator to the first item in the collection.
第一和第二行重置枚举的第一个项目的集合。
Advances the enumerator to the next message in the queue, if one is currently available.
如果目前有可用的列举值,让列举值前进至伫列中的下一个讯息。
When an enumerator is created, it takes a snapshot of the current state of the collection.
在创建枚举数后,该枚举数会创建集合当前状态的快照。
In this case you must obtain a new enumerator object because the previous one is invalidated.
这时您必须获取一个新的枚举数对象,因为以前的已无效。
The enumerator is positioned before the first element of the collection or after the last element.
枚举数位于集合的第一个元素之前或最后一个元素之后。
This method instantiates an enumerator that takes a snapshot of the current state of the collection.
此方法实例化一个枚举数,该枚举数采用集合当前状态的快照。
Returns an enumerator that can be used to read all the session-state variable names in the current session.
返回一个枚举数,可用来读取当前会话中所有会话状态的变量名称。
When the enumerator is created, it points to the head of the queue, at a location before the first message.
在建立列举值时,它会指向伫列的前端,位于第一个讯息的前面。
Sorting with a comparator is one option when working with an enumerator, searching with a filter is the other.
使用比较器进行排序是使用枚举器时的一种选择,另外一种选择是使用过滤器进行搜索。
It USES the new yield keyword to create the enumerator much more easily than previous versions of the framework.
它使用新生成的关键字来创建比早期版本的框架更方便的枚举器。
Provides an enumerator to access the security policy hierarchy by levels, such as computer policy and user policy.
提供枚举器以按级别(如计算机策略和用户策略)访问安全策略层次结构。
Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.
创建在可连接对象中支持的所有连接点的枚举数,每个IID一个连接点。
With the comparator code written, we next create an enumerator, referencing an instance of the ComparatorInteger class.
完成比较器的编写之后,我们来创建一个枚举器,其中引用了comparatorinteger类的一个实例。
Advances the cursor of this enumerator from its current position so that the specified number of elements are skipped.
将此枚举数的游标从其当前位置提前,以便跳过指定数量的元素。
The enumerator will create a result set of records from the record store, using the comparator as the sorting algorithm.
这个枚举器将使用比较器作为排序算法,从记录存储创建一个记录结果集。
This decision really depends on how the function is used and should be heavily tested prior to optimizing the enumerator.
此决策实际取决于优化枚举器之前如何使用函数以及应如何对函数进行大量测试。
应用推荐