iterindex iterindex Code snippet for 'named' iterator/indexer pair using a nested class Microsoft Corporation Expansion
type ElementType Type to return from iterator/indexer name MyView Name of the iterator/indexer pair 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]; } } }]]>