ItemTreeNodeTNode, TItemMapCopyToTDestNode(TDestNode, FuncTNode, Boolean, NullableInt32) Method

Deep copy this to destination node type starting at destination parent; uses a filtering predicate; items will be reference copies The filtering predicate will terminate traversing source branch if no children satisfy the predicate, even if deeper descendants do.

Definition

Namespace: MobileTrack.Common.Models.TreeViews.ItemTree
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public void MapCopyTo<TDestNode>(
	TDestNode destParent,
	Func<TNode, bool> allowNext,
	int? maxRelativeDepth = null
)
where TDestNode : ItemTreeNode<TDestNode, TItem>

Parameters

destParent  TDestNode
Parent/root destination node
allowNext  FuncTNode, Boolean
Predicate determining eligibility of source node and its descendants
maxRelativeDepth  NullableInt32  (Optional)
Max depth of traversal (relative to this node)

Type Parameters

TDestNode
Destination node type

See Also