コード例 #1
0
        public AudioFileCollection Copy()
        {
            AudioFileCollection newFileCollection = new AudioFileCollection();

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

            return(newFileCollection);
        }
コード例 #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;
 }