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); } }
public override int GetHashCode() { return(ServerName.GetHashCode() + Port + SiteName.GetHashCode() + ApplicationPath.GetHashCode()); }
/// <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()); }