IEnumerator <GoLayer> IEnumerable <GoLayer> .GetEnumerator() { GoLayerCollectionEnumerator goLayerCollectionEnumerator = this; goLayerCollectionEnumerator.Reset(); return(goLayerCollectionEnumerator); }
/// <summary> /// Gets an enumerator for iterating over the GoLayers in this collection. /// </summary> public GoLayerCollectionEnumerator GetEnumerator() { GoLayerCollectionEnumerator result = this; result.Reset(); return(result); }
private ZOrderComparer GetComparer() { if (myComparer == null) { myComparer = new ZOrderComparer(this); } using (GoLayerCollectionEnumerator goLayerCollectionEnumerator = GetEnumerator()) { while (goLayerCollectionEnumerator.MoveNext()) { goLayerCollectionEnumerator.Current.InitializeIndices(); } } return(myComparer); }