private void init(ProtocolOpRS232 rs232 = null, ProtocolOpCAN can = null, ProtocolOpDataType dataType = null) { DataType = dataType ?? new ProtocolOpDataType(); RS232 = rs232 ?? new ProtocolOpRS232(); CAN = can ?? new ProtocolOpCAN(); }
public ProtocolOp(ProtocolOpRS232 rs232 = null, ProtocolOpCAN can = null, ProtocolOpDataType dataType = null) { DataType = dataType ?? new ProtocolOpDataType(); RS232 = rs232 ?? new ProtocolOpRS232(); CAN = can ?? new ProtocolOpCAN(); }