Ejemplo n.º 1
0
        public AudioFileCollection Copy()
        {
            AudioFileCollection newFileCollection = new AudioFileCollection();

            AudioFiles.ForEach(audioFile =>
            {
                newFileCollection.Add(audioFile.Copy());
            });

            return(newFileCollection);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Instantiates an artist with the given parent collection and name
 /// </summary>
 /// <param name="parent"></param>
 /// <param name="artist"></param>
 public Artist(AudioFileCollection parent, string artist)
 {
     Parent = parent;
     Name   = artist;
 }