Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (AgentType != null
                                 ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(AgentType)
                                 : 0);
         hashCode = (hashCode * 397) ^ (ExecutablePath != null
                                 ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(ExecutablePath)
                                 : 0);
         hashCode = (hashCode * 397) ^ (CommandLineArguments != null
                                 ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(CommandLineArguments)
                                 : 0);
         hashCode = (hashCode * 397) ^ (HostName != null
                                 ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(HostName)
                                 : 0);
         hashCode = (hashCode * 397) ^ Port;
         hashCode = (hashCode * 397) ^
                    (ServiceNames != null ? ServiceNames.GetHashCode() : 0);
         return(hashCode);
     }
 }