protected CCToolsBoardPort GetPort(int number) { lock (_syncRoot) { CCToolsBoardPort port; if (!_openPorts.TryGetValue(number, out port)) { port = new CCToolsBoardPort(number, this); _openPorts.Add(number, port); } return(port); } }
protected CCToolsBoardPort GetPort(int number) { lock (_syncRoot) { CCToolsBoardPort port; if (!_openPorts.TryGetValue(number, out port)) { port = new CCToolsBoardPort(number, this); _openPorts.Add(number, port); } return port; } }