Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ListID != null ? ListID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListName != null ? ListName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListAgencyID != null ? ListAgencyID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListAgencyName != null ? ListAgencyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListVersionID != null ? ListVersionID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListURI != null ? ListURI.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ListSchemeURI != null ? ListSchemeURI.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LanguageID != null ? LanguageID.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LanguageID.Length != 0)
            {
                hash ^= LanguageID.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (NativeName.Length != 0)
            {
                hash ^= NativeName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }