Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = 851985039;

            hashCode = hashCode * -1521134295 + m_Value.GetHashCode();
            hashCode = hashCode * -1521134295 + m_Unit.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashCode = -1167462471;

            if (CustomUnit != null)
            {
                hashCode += CustomUnit.GetHashCode();
            }

            if (AreaUnit != null)
            {
                hashCode += AreaUnit.GetHashCode();
            }

            if (LengthUnit != null)
            {
                hashCode += LengthUnit.GetHashCode();
            }

            if (VolumeUnit != null)
            {
                hashCode += VolumeUnit.GetHashCode();
            }

            if (WeightUnit != null)
            {
                hashCode += WeightUnit.GetHashCode();
            }

            if (GenericUnit != null)
            {
                hashCode += GenericUnit.GetHashCode();
            }

            if (TimeUnit != null)
            {
                hashCode += TimeUnit.GetHashCode();
            }

            if (Type != null)
            {
                hashCode += Type.GetHashCode();
            }

            return(hashCode);
        }