Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ModelName != null ? ModelName.GetHashCode() : 0) * 397) ^ (ParentProperty != null ? ParentProperty.GetHashCode() : 0));
     }
 }
Exemple #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (BrandName != null)
         {
             hashCode = hashCode * 59 + BrandName.GetHashCode();
         }
         if (ModelName != null)
         {
             hashCode = hashCode * 59 + ModelName.GetHashCode();
         }
         if (FrameType != null)
         {
             hashCode = hashCode * 59 + FrameType.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (ResizeScale != 0F)
            {
                hash ^= ResizeScale.GetHashCode();
            }
            if (InputOffsetY != 0)
            {
                hash ^= InputOffsetY.GetHashCode();
            }
            if (InputOffsetX != 0)
            {
                hash ^= InputOffsetX.GetHashCode();
            }
            if (CropHeight != 0)
            {
                hash ^= CropHeight.GetHashCode();
            }
            if (CropWidth != 0)
            {
                hash ^= CropWidth.GetHashCode();
            }
            if (MeanB != 0)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            return(hash);
        }
Exemple #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Manufacture != null ? Manufacture.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ModelName != null ? ModelName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Serial != null ? Serial.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #5
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^
            IsSuccess.GetHashCode() ^
            State.GetHashCode() ^
            Manufacturer.GetHashCode() ^
            ModelName.GetHashCode() ^
            SerialNumber.GetHashCode() ^
            SignalQuality.GetHashCode() ^
            Imsi.GetHashCode() ^
            Imei.GetHashCode() ^
            OperatorName.GetHashCode());
 }
Exemple #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 13;
         hash = hash * 7 + (Name == null ? 0 : Name.GetHashCode());
         hash = hash * 7 + (ModelName == null ? 0 : ModelName.GetHashCode());
         hash = hash * 7 + (SerialCode == null ? 0 : SerialCode.GetHashCode());
         hash = hash * 7 + (BuildName == null ? 0 : BuildName.GetHashCode());
         hash = hash * 7 + BuildVersion.GetHashCode();
         hash = hash * 7 + HighestRevision.GetHashCode();
         hash = hash * 7 + ResetReason.GetHashCode();
         hash = hash * 7 + ResetException.GetHashCode();
         hash = hash * 7 + StopReason.GetHashCode();
         return(hash);
     }
 }
Exemple #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (modelVer_ != null)
            {
                hash ^= ModelVer.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #8
0
 public override int GetHashCode()
 {
     return(ModelName.GetHashCode());
 }
Exemple #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MinCropSize != 0)
            {
                hash ^= MinCropSize.GetHashCode();
            }
            if (CropMethod != 0)
            {
                hash ^= CropMethod.GetHashCode();
            }
            if (MeanB != 0F)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0F)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0F)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            if (CropScale != 0F)
            {
                hash ^= CropScale.GetHashCode();
            }
            if (InputBlobName.Length != 0)
            {
                hash ^= InputBlobName.GetHashCode();
            }
            if (ImParamBlobName.Length != 0)
            {
                hash ^= ImParamBlobName.GetHashCode();
            }
            if (OutputBlobName.Length != 0)
            {
                hash ^= OutputBlobName.GetHashCode();
            }
            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (MaxBatchSize != 0)
            {
                hash ^= MaxBatchSize.GetHashCode();
            }
            return(hash);
        }
Exemple #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (InputBlob.Length != 0)
            {
                hash ^= InputBlob.GetHashCode();
            }
            if (OutputBlob.Length != 0)
            {
                hash ^= OutputBlob.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (ClassifyThreshold != 0F)
            {
                hash ^= ClassifyThreshold.GetHashCode();
            }
            if (ClassifyResizeWidth != 0)
            {
                hash ^= ClassifyResizeWidth.GetHashCode();
            }
            if (ClassifyResizeHeight != 0)
            {
                hash ^= ClassifyResizeHeight.GetHashCode();
            }
            if (Scale != 0F)
            {
                hash ^= Scale.GetHashCode();
            }
            if (MeanB != 0F)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0F)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0F)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            return(hash);
        }