예제 #1
0
 public override int GetHashCode()
 {
     unchecked // disable overflow, for the unlikely possibility that you
     {         // are compiling with overflow-checking enabled
         int hash = 27;
         hash = (13 * hash) + SiteName.GetHashCode();
         hash = (13 * hash) + SiteLang.GetHashCode();
         return(hash);
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(ServerName.GetHashCode() + Port + SiteName.GetHashCode() + ApplicationPath.GetHashCode());
 }
예제 #3
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     return(DataSource.GetHashCode() ^ SiteName.GetHashCode() ^
            (ValueCount != null ? ValueCount.GetHashCode() : 0) ^ ServiceDesciptionUrl.GetHashCode() ^
            VarCode.GetHashCode());
 }