private List <uint> GetPorts() { List <uint> ports = new List <uint>(); Dictionary <uint, Process> mappedPorts = PortHelper.MapPorts(); foreach ((uint port, Process proc) in mappedPorts) { if (proc.Id == this.Process.Id && port > 2000) { ports.Add(port); } } return(ports); }