Esempio n. 1
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = TrackName != null?TrackName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ Duration;
                hashCode = (hashCode * 397) ^ Bitrate;
                hashCode = (hashCode * 397) ^ (TrackUrl != null ? TrackUrl.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Group != null ? Group.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Year;
                hashCode = (hashCode * 397) ^ (RecordFormat != null ? RecordFormat.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Album != null ? Album.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Size;
                hashCode = (hashCode * 397) ^ (Genre != null ? Genre.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Rate;
                return(hashCode);
            }
        }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.idTrack)
            {
                hashcode = (hashcode * 397) + IdTrack.GetHashCode();
            }
            if (__isset.trackName)
            {
                hashcode = (hashcode * 397) + TrackName.GetHashCode();
            }
            if (__isset.audio)
            {
                hashcode = (hashcode * 397) + Audio.GetHashCode();
            }
        }
        return(hashcode);
    }