Beispiel #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ServiceRanking != null)
         {
             hashCode = hashCode * 59 + ServiceRanking.GetHashCode();
         }
         if (TypeCollections != null)
         {
             hashCode = hashCode * 59 + TypeCollections.GetHashCode();
         }
         if (TypeNoncollections != null)
         {
             hashCode = hashCode * 59 + TypeNoncollections.GetHashCode();
         }
         if (TypeContent != null)
         {
             hashCode = hashCode * 59 + TypeContent.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (DavRoot != null)
         {
             hashCode = hashCode * 59 + DavRoot.GetHashCode();
         }
         if (DavCreateAbsoluteUri != null)
         {
             hashCode = hashCode * 59 + DavCreateAbsoluteUri.GetHashCode();
         }
         if (DavRealm != null)
         {
             hashCode = hashCode * 59 + DavRealm.GetHashCode();
         }
         if (CollectionTypes != null)
         {
             hashCode = hashCode * 59 + CollectionTypes.GetHashCode();
         }
         if (FilterPrefixes != null)
         {
             hashCode = hashCode * 59 + FilterPrefixes.GetHashCode();
         }
         if (FilterTypes != null)
         {
             hashCode = hashCode * 59 + FilterTypes.GetHashCode();
         }
         if (FilterUris != null)
         {
             hashCode = hashCode * 59 + FilterUris.GetHashCode();
         }
         if (TypeCollections != null)
         {
             hashCode = hashCode * 59 + TypeCollections.GetHashCode();
         }
         if (TypeNoncollections != null)
         {
             hashCode = hashCode * 59 + TypeNoncollections.GetHashCode();
         }
         if (TypeContent != null)
         {
             hashCode = hashCode * 59 + TypeContent.GetHashCode();
         }
         return(hashCode);
     }
 }