SuspendableDocumentNodeChildCloneToMemberT Method |
Sets a member variable that holds a child with a cloned instance of another variable.
If an old instance member (provided in myChild exists and can not be used, it is disposed first.
The node is then cloned using System.ICloneable. The resulting node's ParentObject
is then set to this instance in order to maintain the parent-child relationship.
Namespace: Altaxo.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax protected void ChildCloneToMember<T>(
ref T myChild,
T fromAnotherChild
)
where T : IDocumentLeafNode, ICloneable
Parameters
- myChild T
- Reference to a member variable of this instance that holds a child node.
- fromAnotherChild T
- Another child node to copy from. If null, the child node of this instance is also set to null.
Type Parameters
- T
- Type of the node to copy.
See Also