コード例 #1
0
        IEnumerator <GoLayer> IEnumerable <GoLayer> .GetEnumerator()
        {
            GoLayerCollectionEnumerator goLayerCollectionEnumerator = this;

            goLayerCollectionEnumerator.Reset();
            return(goLayerCollectionEnumerator);
        }
コード例 #2
0
        /// <summary>
        /// Gets an enumerator for iterating over the GoLayers in this collection.
        /// </summary>
        public GoLayerCollectionEnumerator GetEnumerator()
        {
            GoLayerCollectionEnumerator result = this;

            result.Reset();
            return(result);
        }
コード例 #3
0
 private ZOrderComparer GetComparer()
 {
     if (myComparer == null)
     {
         myComparer = new ZOrderComparer(this);
     }
     using (GoLayerCollectionEnumerator goLayerCollectionEnumerator = GetEnumerator())
     {
         while (goLayerCollectionEnumerator.MoveNext())
         {
             goLayerCollectionEnumerator.Current.InitializeIndices();
         }
     }
     return(myComparer);
 }