Example #1
0
 public override int GetHashCode()
 {
     return(HorizontalAlignment.GetHashCode()
            ^ VerticalAlignment.GetHashCode()
            ^ (WrapText ? 1 : 0)
            ^ Rotation.GetHashCode());
 }
Example #2
0
 /// <summary>
 /// Gets the hash code.
 /// </summary>
 public override int GetHashCode()
 {
     unchecked
     {
         return(horizontal.GetHashCode() * 27 + vertical.GetHashCode());
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Border.GetHashCode();
         result = (result * 397) ^ Font.GetHashCode();
         result = (result * 397) ^ Format.GetHashCode();
         result = (result * 397) ^ VerticalAlignment.GetHashCode();
         result = (result * 397) ^ HorizontalAlignment.GetHashCode();
         return(result);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = 253911835;

            hashCode = hashCode * -1521134295 + HorizontalAlignment.GetHashCode();
            hashCode = hashCode * -1521134295 + VerticalAlignment.GetHashCode();
            hashCode = hashCode * -1521134295 + HasBorder.GetHashCode();
            hashCode = hashCode * -1521134295 + WrapText.GetHashCode();
            hashCode = hashCode * -1521134295 + BackgroundColor.GetHashCode();
            hashCode = hashCode * -1521134295 + Font.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataFormat);

            return(hashCode);
        }
Example #5
0
        public override int GetHashCode()
        {
            var hashCode = 1158783753;

            hashCode = hashCode * -1521134295 + Bold.GetHashCode();
            hashCode = hashCode * -1521134295 + Italic.GetHashCode();
            hashCode = hashCode * -1521134295 + Underline.GetHashCode();
            hashCode = hashCode * -1521134295 + Strikethrough.GetHashCode();
            hashCode = hashCode * -1521134295 + VerticalAlignment.GetHashCode();
            hashCode = hashCode * -1521134295 + Shadow.GetHashCode();
            hashCode = hashCode * -1521134295 + FontSize.GetHashCode();
            hashCode = hashCode * -1521134295 + FontColor.GetHashCode();
            hashCode = hashCode * -1521134295 + StringComparer.InvariantCultureIgnoreCase.GetHashCode(FontName);
            hashCode = hashCode * -1521134295 + FontFamilyNumbering.GetHashCode();
            hashCode = hashCode * -1521134295 + FontCharSet.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasVendor)
            {
                hash ^= Vendor.GetHashCode();
            }
            if (HasModel)
            {
                hash ^= Model.GetHashCode();
            }
            if (HasScreenToLensDistance)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ScreenToLensDistance);
            }
            if (HasInterLensDistance)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InterLensDistance);
            }
            hash ^= leftEyeFieldOfViewAngles_.GetHashCode();
            if (HasVerticalAlignment)
            {
                hash ^= VerticalAlignment.GetHashCode();
            }
            if (HasTrayToLensDistance)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TrayToLensDistance);
            }
            hash ^= distortionCoefficients_.GetHashCode();
            if (HasPrimaryButton)
            {
                hash ^= PrimaryButton.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #7
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Eto.Forms.VerticalAlign"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.</returns>
 public override int GetHashCode()
 {
     return(value.GetHashCode());
 }