示例#1
0
        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));
        }
示例#2
0
        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));
        }