상속: IBinaryInput, IBinaryOutput
예제 #1
0
        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;
            }
        }