//Удаление повторов public PortList DelIns() { PortList newlist = new PortList(); foreach (PortStatus port in this.GetPortList()) { if (!newlist.FindPort(port.Port).GetPortList().Any(x => x.Link == port.Link)) { newlist.AddPort(port); } } return(newlist); }
public PortList(PortList newlist) { this.portList = newlist.portList; }