Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((UnitHoldeType.GetHashCode() * 397) ^ UnitName.GetHashCode());
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(UnitName.GetHashCode());
     }
 }
Ejemplo 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);
    }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 271;

            hash = (hash * 7) ^ LessonName.GetHashCode();
            hash = (hash * 7) ^ UnitName.GetHashCode();
            return(hash);
        }
Ejemplo 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);
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(UnitName?.GetHashCode() ?? 0);
 }