public bool Equals(Track other) { if ((object)other == null) { return(false); } return(ChapterList.Equals(other.ChapterList) && NowPlayingTrackInfo.Equals(other.NowPlayingTrackInfo)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } Track track = obj as Track; if ((object)track == null) { return(false); } return(ChapterList.Equals(track.ChapterList) && NowPlayingTrackInfo.Equals(track.NowPlayingTrackInfo)); }