Esempio n. 1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="GeometryList{T}.Enumerator" /> class.
            /// </summary>
            /// <param name="list">The list.</param>
            internal Enumerator(GeometryList <T> list)
            {
                _localList    = list;
                _localVersion = list._version;

                _index   = 0;
                _current = default(T);
            }
Esempio n. 2
0
        /// <summary>
        /// Creates a clone of the geometry list instance.
        /// </summary>
        /// <returns>
        /// The deep copy of the geometry list instance.
        /// </returns>
        public override Object Clone()
        {
            GeometryList <T> list = new GeometryList <T>(_size, Factory, Metadata);

            list._size = _size;
            for (Int32 i = 0; i < _size; i++)
            {
                list._geometries[i] = (T)_geometries[i].Clone();
            }

            return(list);
        }