public override bool Equals(object obj) { if (obj is IPAddressItem other) { return (IPAddress?.Equals(other.IPAddress) == true && InterfaceId?.Equals(other.InterfaceId) == true); } return(base.Equals(obj)); }