コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConfidenceThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ConfidenceThreshold);
            }
            if (MaxPredictions != 0)
            {
                hash ^= MaxPredictions.GetHashCode();
            }
            if (SegmentClassification != false)
            {
                hash ^= SegmentClassification.GetHashCode();
            }
            if (ShotClassification != false)
            {
                hash ^= ShotClassification.GetHashCode();
            }
            if (OneSecIntervalClassification != false)
            {
                hash ^= OneSecIntervalClassification.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConfidenceThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ConfidenceThreshold);
            }
            if (MaxPredictions != 0)
            {
                hash ^= MaxPredictions.GetHashCode();
            }
            if (MinBoundingBoxSize != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinBoundingBoxSize);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }