Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((UnitHoldeType.GetHashCode() * 397) ^ UnitName.GetHashCode());
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(UnitName.GetHashCode());
     }
 }
Esempio n. 3
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (UnitName.Length != 0)
        {
            hash ^= UnitName.GetHashCode();
        }
        hash ^= aliases_.GetHashCode();
        if (dimension_ != null)
        {
            hash ^= Dimension.GetHashCode();
        }
        if (SiMultiplier != 0D)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SiMultiplier);
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 271;

            hash = (hash * 7) ^ LessonName.GetHashCode();
            hash = (hash * 7) ^ UnitName.GetHashCode();
            return(hash);
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UnitName.Length != 0)
            {
                hash ^= UnitName.GetHashCode();
            }
            if (DevHost.Length != 0)
            {
                hash ^= DevHost.GetHashCode();
            }
            if (ConnectTime.Length != 0)
            {
                hash ^= ConnectTime.GetHashCode();
            }
            if (DevStatus != 0)
            {
                hash ^= DevStatus.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(UnitName?.GetHashCode() ?? 0);
 }