Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (AgeMin != 0)
            {
                hash ^= AgeMin.GetHashCode();
            }
            if (AgeMax != 0)
            {
                hash ^= AgeMax.GetHashCode();
            }
            if (Distance != 0)
            {
                hash ^= Distance.GetHashCode();
            }
            if (No != 0)
            {
                hash ^= No.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 public override string ToString()
 {
     return(Name + " !price: " + Price.ToString() + " " + AgeMin.ToString() + "-" + AgeMax.ToString());
 }