示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Type;
         hashCode = (hashCode * 397) ^ (WindowName != null ? WindowName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApplicationPath != null ? ApplicationPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HotKey != null ? HotKey.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     return(ServerName.GetHashCode() + Port + SiteName.GetHashCode() + ApplicationPath.GetHashCode());
 }