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

            if (AreaId != 0)
            {
                hash ^= AreaId.GetHashCode();
            }
            if (AreaName.Length != 0)
            {
                hash ^= AreaName.GetHashCode();
            }
            if (AreaState != 0)
            {
                hash ^= AreaState.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return((AreaName?.GetHashCode() ?? 0) ^
            (PageName?.GetHashCode() ?? 0));
 }