src/GenFx.Components/Trees/TreeNode.cs
/// <summary>
/// Returns a clone of this node.
/// </summary>
/// <param name="newTree"><see cref="TreeEntityBase"/> to which the cloned node should be assigned.</param>
/// <param name="newParentNode"><see cref="TreeNode"/> to be assigned as the parent node of the cloned node.</param>
/// <returns>A clone of this node.</returns>
/// <remarks>
/// <b>Notes to implementers:</b> When this method is overriden, it is suggested that the
/// <see cref="TreeNode.CopyTo(TreeNode, TreeEntityBase, TreeNode)"/> method is also overriden.  
/// In that case, the suggested implementation of this method is the following:
/// <code>
/// <![CDATA[
/// public override object Clone(TreeEntity newTree, TreeNode newParentNode)
/// {
///     MyTreeNode node = new MyTreeNode();
///     this.CopyTo(node, newTree, newParentNode);
///     return node;
/// }
/// ]]>
/// </code>
/// </remarks>
/// <exception cref="ArgumentNullException"><paramref name="newTree"/> is null.</exception>
Returns a clone of this node.
Returns a clone of this node .
public virtual TreeNode Clone(TreeEntityBase newTree, TreeNode? newParentNode)
        {
            if (newTree is null)
            {
                throw new ArgumentNullException(nameof(newTree));
            }
            TreeNode node = new TreeNode();
            this.CopyTo(node, newTree, newParentNode);
            return node;
        }
public virtual TreeNode Clone ( TreeEntityBase newTree , TreeNode ? newParentNode ) { if ( newTree is null ) { throw new ArgumentNullException ( nameof ( newTree ) ) ; } TreeNode node = new TreeNode ( ) ; this . CopyTo ( node , newTree , newParentNode ) ; return node ; }
Returns a clone of this node.
Returns a clone of this node .
A clone of this node.
A clone of this node .
None
newTree
TreeEntityBase
to which the cloned node should be assigned.
to which the cloned node should be assigned .
newParentNode
TreeNode?
to be assigned as the parent node of the cloned node.
to be assigned as the parent node of the cloned node .
remarks
Notes to implementers: method is also overriden.
In that case, the suggested implementation of this method is the following.

public override object Clone(TreeEntity newTree, TreeNode newParentNode)
{
MyTreeNode node = new MyTreeNode();
this.CopyTo(node, newTree, newParentNode);
return node;
}
Notes to implementers : method is also overriden . In that case the suggested implementation of this method is the following . public override object Clone ( TreeEntity newTree TreeNode newParentNode ) { MyTreeNode node = new MyTreeNode () ; this . CopyTo ( node newTree newParentNode ) ; return node ; }