Beispiel #1
0
        public override Int32 GetHashCode()
        {
            int value = 31415;

            value = value * 7 + ByteOrder.GetHashCode();
            value = value * 7 + BitOrder.GetHashCode();
            value = value * 7 + BitWidth.GetHashCode();
            value = value * 7 + Signed.GetHashCode();
            return(value);
        }
Beispiel #2
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + (Align ^ (Align >> 32));
            // don't evaluate object but string
            result = prime * result + ByteOrder.GetHashCode();
            result = prime * result + Exponent;
            result = prime * result + Mantissa;
            return(result);
        }