Clone() public method

Creates an identical copy of the ethernet port options
public Clone ( ) : EthernetPortOptions
return EthernetPortOptions
Beispiel #1
0
 /// <summary>
 /// Creates a new ethernet port instance
 /// </summary>
 /// <param name="options">The options for the port</param>
 public EthernetPort(EthernetPortOptions options)
 {
     this._options = options.Clone();
     this._device = _getCaptureDevice();
     this._device.OnPacketArrival += _onPacketArrival;
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new ethernet port instance
 /// </summary>
 /// <param name="options">The options for the port</param>
 public EthernetPort(EthernetPortOptions options)
 {
     this._options = options.Clone();
     this._device  = _getCaptureDevice();
     this._device.OnPacketArrival += _onPacketArrival;
 }