BACnet.Client.DeviceFinderOptions.Clone C# (CSharp) Method

Clone() public method

Creates an identical copy of this options instance
public Clone ( ) : DeviceFinderOptions
return DeviceFinderOptions
        public DeviceFinderOptions Clone()
        {
            return new DeviceFinderOptions()
            {
                ProcessId = this.ProcessId
            };
        }

Usage Example

Example #1
0
 /// <summary>
 /// Creates a new device finder instance
 /// </summary>
 public DeviceFinder(DeviceFinderOptions options)
 {
     this._options = options.Clone();
     this._ranges  = new LinkedList <DeviceRange>();
     this._ranges.AddLast(new DeviceRange(false, 1, ObjectId.MaxInstance));
     this._observers = new SubscriptionList <DeviceTableEntry>();
 }