示例#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);
 }