Clone() public method

Creates an identical copy of this port manager options instance
public Clone ( ) : PortManagerOptions
return PortManagerOptions
示例#1
0
 /// <summary>
 /// Constructs a new port manager instance
 /// </summary>
 public PortManager(PortManagerOptions options)
 {
     Contract.Requires(options != null);
     _options = options.Clone();
     _ports = new List<IPort>();
 }
示例#2
0
 /// <summary>
 /// Constructs a new port manager instance
 /// </summary>
 public PortManager(PortManagerOptions options)
 {
     Contract.Requires(options != null);
     _options = options.Clone();
     _ports   = new List <IPort>();
 }