Пример #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 (AccountName != null)
         {
             hashCode = hashCode * 59 + AccountName.GetHashCode();
         }
         if (ContainerName != null)
         {
             hashCode = hashCode * 59 + ContainerName.GetHashCode();
         }
         if (AccessKey != null)
         {
             hashCode = hashCode * 59 + AccessKey.GetHashCode();
         }
         if (RootPath != null)
         {
             hashCode = hashCode * 59 + RootPath.GetHashCode();
         }
         if (ConnectionURL != null)
         {
             hashCode = hashCode * 59 + ConnectionURL.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (RootPath != null ? RootPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Item1 != null ? Item1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Item2 != null ? Item2.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #3
0
        public override int GetHashCode()
        {
            int result = 0;

            result ^= RootPath.GetHashCode();
            if (VersionControlSystem != null)
            {
                result ^= VersionControlSystem.GetHashCode();
            }
            if (LocationDescription != null)
            {
                result ^= LocationDescription.GetHashCode();
            }
            result ^= Name.GetHashCode();
            return(result);
        }
Пример #4
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 (RootPath != null)
         {
             hashCode = hashCode * 59 + RootPath.GetHashCode();
         }
         if (FixInconsistencies != null)
         {
             hashCode = hashCode * 59 + FixInconsistencies.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     return(RootPath != null ? RootPath.GetHashCode() : 0);
 }