public override int GetHashCode() { unchecked { return((AdapterInformation.GetHashCode() * 397) ^ (Host != null ? Host.GetHashCode() : 0)); } }
public ServiceAnnouncement(AdapterInformation adapterInformation, IZeroconfHost host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } AdapterInformation = adapterInformation; Host = host; }
public bool Equals(ServiceAnnouncement other) { return(AdapterInformation.Equals(other.AdapterInformation) && Equals(Host, other.Host)); }