Exemple #1
0
        public override int GetHashCode()
        {
            var hashCode = -153730685;

            hashCode = hashCode * -1521134295 + Tone.GetHashCode();
            hashCode = hashCode * -1521134295 + Bar.GetHashCode();
            return(hashCode);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = -487476052;

            hashCode = hashCode * -1521134295 + Tone.GetHashCode();
            hashCode = hashCode * -1521134295 + OctaveOffset.GetHashCode();
            hashCode = hashCode * -1521134295 + Accidental.GetHashCode();
            return(hashCode);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            var hashCode = 1131172314;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + Tone.GetHashCode();
            hashCode = hashCode * -1521134295 + Scale.GetHashCode();
            return(hashCode);
        }
Exemple #4
0
        public override int GetHashCode()
        {
            unchecked
            {
                var result = Tone.GetHashCode();

                result = (result * 397) ^ Accidental.GetHashCode();

                return(result);
            }
        }
Exemple #5
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>
 /// A 32-bit signed integer that is the hash code for this instance.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)instrumentType;
         hashCode = (hashCode * 397) ^ Tone.GetHashCode();
         hashCode = (hashCode * 397) ^ ToneVelocity.GetHashCode();
         hashCode = (hashCode * 397) ^ ToneStartTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ToneEndTime.GetHashCode();
         return(hashCode);
     }
 }
Exemple #6
0
        public override int GetHashCode()
        {
            int hash = 0;

            for (int i = 0; i < m_Symbols.Length; i++)
            {
                hash += m_Symbols[i].GetHashCode();
            }
            hash += Tone.GetHashCode();

            return(hash);
        }