/// <summary>
 /// Deep copy constructor.
 /// </summary>
 public TreeConnect(TreeConnect treeConnect)
 {
     if (treeConnect != null)
     {
         this.GlobalIndex = treeConnect.GlobalIndex;
         this.TreeId = treeConnect.TreeId;
         this.SessionId = treeConnect.SessionId;
         this.ConnectionId = treeConnect.ConnectionId;
         this.Share = treeConnect.Share;
     }
     else
     {
         this.GlobalIndex = 0;
         this.TreeId = 0;
         this.SessionId = 0;
         this.ConnectionId = 0;
         this.Share = "";
     }
 }
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public TreeConnect(TreeConnect treeConnect)
 {
     if (treeConnect != null)
     {
         this.GlobalIndex  = treeConnect.GlobalIndex;
         this.TreeId       = treeConnect.TreeId;
         this.SessionId    = treeConnect.SessionId;
         this.ConnectionId = treeConnect.ConnectionId;
         this.Share        = treeConnect.Share;
     }
     else
     {
         this.GlobalIndex  = 0;
         this.TreeId       = 0;
         this.SessionId    = 0;
         this.ConnectionId = 0;
         this.Share        = "";
     }
 }