/// <summary> /// Initializes a new instance of the <see cref="SerialPortEvent"/> class with event type, <see cref="SerialPort"/> instance and <see /// cref="System.Exception"/> caught. /// </summary> /// <param name="eventType">The type of event.</param> /// <param name="serialPort">The <see cref="MonoSerialPort"/> instance.</param> /// <param name="exception">The <see cref="System.Exception"/> caught.</param> public SerialPortEvent(string eventType, MonoSerialPort serialPort, Exception exception) : base(eventType, serialPort) { Exception = exception; }
/// <summary> /// Initializes a new instance of the <see cref="SerialPortEvent"/> class with event type, <see cref="SerialPort"/> instance and <see /// cref="ISerialPortPacket"/> unpacked. /// </summary> /// <param name="eventType">The type of event.</param> /// <param name="serialPort">The <see cref="MonoSerialPort"/> instance.</param> /// <param name="packet">The <see cref="ISerialPortPacket"/> unpacked.</param> public SerialPortEvent(string eventType, MonoSerialPort serialPort, ISerialPortPacket packet = null) : base(eventType, serialPort) { SerialPortPacket = packet; }