示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Artist != null ? Artist.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Album != null ? Album.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BitmapRepresentation != null ? BitmapRepresentation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPlaying.GetHashCode();
         hashCode = (hashCode * 397) ^ DurationSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ CurrentPosition.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 protected bool Equals(PlayingInfo other)
 {
     return(string.Equals(Title, other.Title) && string.Equals(Artist, other.Artist) && string.Equals(Album, other.Album) && Equals(BitmapRepresentation, other.BitmapRepresentation) && IsPlaying == other.IsPlaying && DurationSpan.Equals(other.DurationSpan) && CurrentPosition.Equals(other.CurrentPosition));
 }