public bool Equals(IceCandidate cand)
{
// If parameter is null return false:
if ((object)cand == null)
{
return false;
}
// Return true if the fields match:
return (addr_port.port == cand.addr_port.port) &&
(priority == cand.priority) &&
(cand_type == cand.cand_type) &&
(tcpType == cand.tcpType);
}