Exemplo n.º 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            hashcode = (hashcode * 397) + IdTrack.GetHashCode();
            if (__isset.trackNumber)
            {
                hashcode = (hashcode * 397) + TrackNumber.GetHashCode();
            }
            if (__isset.durationSeconds)
            {
                hashcode = (hashcode * 397) + DurationSeconds.GetHashCode();
            }
            if (__isset.storagePath)
            {
                hashcode = (hashcode * 397) + StoragePath.GetHashCode();
            }
            if (__isset.title)
            {
                hashcode = (hashcode * 397) + Title.GetHashCode();
            }
            if (__isset.gender)
            {
                hashcode = (hashcode * 397) + Gender.GetHashCode();
            }
        }
        return(hashcode);
    }
Exemplo n.º 2
0
 /// <summary>
 ///     If not overridden, returns the hash code of the specified <paramref name="normalizedFullPath"/>.
 /// </summary>
 /// <param name="normalizedFullPath">
 ///     A fully resolved <see cref="StoragePath"/> without trailing directory separators for
 ///     which a hash code should be returned.
 /// </param>
 /// <returns>
 ///     The hash code of the specified <paramref name="normalizedFullPath"/>.
 /// </returns>
 protected virtual int GetHashCodeCore(StoragePath normalizedFullPath)
 {
     _ = normalizedFullPath ?? throw new ArgumentNullException(nameof(normalizedFullPath));
     return(normalizedFullPath.GetHashCode());
 }