iterindex iterindex 使用嵌入类的“已命名”迭代器/索引器对的代码段 Microsoft Corporation Expansion
type ElementType 从迭代器/索引器返回的类型 name MyView 迭代器/索引器对的名称 outer MyOuterClass ClassName() SystemCollectionsGenericIEnumeratorG System.Collections.Generic.IEnumerator Exception SimpleTypeName(global::System.NotImplementedException) GetEnumerator() { for (int i = 0; i < this.Length; i++) { yield return this[i]; } } }]]>