public Route GetRouteByPortId(byte portId) { int index = _findRouteByPortId(portId); return index == -1 ? null : _routes[index]; }