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

            hash ^= CategoricalFeatures.GetHashCode();
            hash ^= NumericalFeatures.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public bool Equals(FeatureMap other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!CategoricalFeatures.Equals(other.CategoricalFeatures))
     {
         return(false);
     }
     if (!NumericalFeatures.Equals(other.NumericalFeatures))
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }