public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = -2083580346;
                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CodecId);

                hashCode = hashCode * -1521134295 + SampleRate.GetHashCode();
                hashCode = hashCode * -1521134295 + Channels.GetHashCode();
                hashCode = hashCode * -1521134295 + DecoderGain.GetHashCode();
                hashCode = hashCode * -1521134295 + FrameDuration.GetHashCode();
                hashCode = hashCode * -1521134295 + Bitrate.GetHashCode();
                return(hashCode);
            }
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Category != 0)
            {
                hash ^= Category.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Bitrate != 0)
            {
                hash ^= Bitrate.GetHashCode();
            }
            if (Fps != 0)
            {
                hash ^= Fps.GetHashCode();
            }
            if (Unknown1 != 0)
            {
                hash ^= Unknown1.GetHashCode();
            }
            if (Unknown2 != 0)
            {
                hash ^= Unknown2.GetHashCode();
            }
            if (Unknown3 != 0)
            {
                hash ^= Unknown3.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(Bitrate.GetHashCode());
 }