public RTU_ADU(RTU_Device Device, IProtocolDataUnit PDU) { if (!(Device is RTU_Device)) throw new ArgumentException("Wrong Device type"); this.PDU = PDU; this.Device = Device; }
public RTU_ADU(RTU_Device Device, IProtocolDataUnit PDU) { if (!(Device is RTU_Device)) { throw new ArgumentException("Wrong Device type"); } this.PDU = PDU; this.Device = Device; }
public TCP_ADU(TCP_Device Device, IProtocolDataUnit PDU) { this.PDU = PDU; this.Device = Device; }