public static bool IsMatched(this TrackCache cache, Track track, string fileName) { if (track is null) { throw new ArgumentNullException(nameof(track)); } if (fileName is null) { throw new ArgumentNullException(nameof(fileName)); } return(cache.Name == track.Name && cache.FileName == fileName && cache.Artists.SequenceEqual(track.Artists)); }
public static bool IsMatched(this TrackCache cache, Track track, Album album) { if (track is null) { throw new ArgumentNullException(nameof(track)); } if (album is null) { throw new ArgumentNullException(nameof(album)); } return(cache.Name == track.Name && cache.AlbumName == album.Name && cache.Artists.SequenceEqual(track.Artists)); }