/// <summary>
        /// Return a deep copy of this collection
        /// </summary>
        public TravelImageCollection Clone()
        {
            TravelImageCollection clone = new TravelImageCollection();

            foreach (TravelImage image in this)
            {
                clone.Add(image.Clone());
            }
            clone.IsModified = this.IsModified;
            return(clone);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds a image to _imageCollection field
 /// </summary>
 /// <param name="image">a image</param>
 private void AddImage(TravelImage image)
 {
     _imageCollection.Add(image);
 }