SuspendableDocumentNodeChildSetMemberT Method |
Set a member variable that holds a child node of this instance. It helps to ensure the correct order: first, the child node is set to the new instance and then the old child node is disposed.
Namespace: Altaxo.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax protected bool ChildSetMember<T>(
ref T childNode,
T instanceToSet
)
where T : IDocumentLeafNode
Parameters
- childNode T
- The child node member variable to set.
- instanceToSet T
- The instance to set the variable with.
Type Parameters
- T
- Type of child node.
Return Value
BooleanTrue if the child has been set. If the old child reference equals to the new child, nothing is done, and
false is returned.
See Also