TreeNodeExtensionsProjectTreeToTreeS, D(S, D, ActionS, D) Method |
Projects a source tree onto a destination tree.
Nodes are updated, added, or deleted in the destination tree to match the source tree.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void ProjectTreeToTree<S, D>(
this S sourceRoot,
D destRoot,
Action<S, D> updateDestinationNodeFromSourceNode
)
where S : Object, ITreeNode<S>
where D : new(), Object, ITreeListNode<D>
Parameters
- sourceRoot S
- The source root node.
- destRoot D
- The destination root node.
- updateDestinationNodeFromSourceNode ActionS, D
- An action that takes a source node and a destination node and updates the destination node according to the contents of the source node.
Type Parameters
- S
- Type of the source node.
- D
- Type of the destination node.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
S. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also