コード例 #1
0
 protected bool Equals(Track other)
 {
     return(TrackId == other.TrackId && string.Equals(Name, other.Name) && string.Equals(Artist, other.Artist) &&
            string.Equals(AlbumArtist, other.AlbumArtist) && string.Equals(Composer, other.Composer) &&
            string.Equals(Album, other.Album) && string.Equals(Genre, other.Genre) &&
            string.Equals(Kind, other.Kind) && Size == other.Size && string.Equals(PlayingTime, other.PlayingTime) &&
            TrackNumber == other.TrackNumber && Year == other.Year && DateModified.Equals(other.DateModified) &&
            DateAdded.Equals(other.DateAdded) && BitRate == other.BitRate && SampleRate == other.SampleRate &&
            PlayCount == other.PlayCount && PlayDate.Equals(other.PlayDate) && PartOfCompilation == other.PartOfCompilation);
 }
コード例 #2
0
ファイル: Track.cs プロジェクト: mmedic/iTunesLibraryParser
 public bool Equals(Track other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(TrackId == other.TrackId && string.Equals(Name, other.Name) &&
            string.Equals(Artist, other.Artist) && string.Equals(AlbumArtist, other.AlbumArtist) &&
            string.Equals(Composer, other.Composer) && string.Equals(Album, other.Album) &&
            string.Equals(Genre, other.Genre) && string.Equals(Kind, other.Kind) && Size == other.Size &&
            string.Equals(PlayingTime, other.PlayingTime) && TrackNumber == other.TrackNumber &&
            Year == other.Year && DateModified.Equals(other.DateModified) && DateAdded.Equals(other.DateAdded) &&
            BitRate == other.BitRate && SampleRate == other.SampleRate && PlayCount == other.PlayCount &&
            PlayDate.Equals(other.PlayDate) && PartOfCompilation == other.PartOfCompilation && Location == other.Location);
 }