public static Library SearchInLibrary(Library library, SearchObject so) { Library newLibrary = new Library("Résultats - " + DateTime.Now.ToString()); if (so != null) { List<Music> musics = library.Search(so); foreach (Music music in musics) newLibrary.AddLibraryObject(music); } return newLibrary; }