Click or drag to resize

SuspendableDocumentNodeChildSetMemberAltT Method

Set a member variable that holds a child node of this instance. The child node may or may not implement IDocumentLeafNode. 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.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected bool ChildSetMemberAlt<T>(
	ref T childNode,
	T instanceToSet
)

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

Boolean
True 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