public bool Equals(Node other) { if (HostIP == null || Hostname == null || other.Hostname == null || other.HostIP == null) { return(false); } if ( Hostname.Trim() == other.Hostname.Trim() || HostIP.Trim() == other.Hostname.Trim()) { return(true); } else { return(false); } }