Class IteratorHelper
Iterating all items in the iterators
Inheritance
IteratorHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class IteratorHelper
Methods
List all nodes in iterator, depth first
Declaration
public static IEnumerable<TNode> AsComEnumerable<TIter, TNode>(this ComWrapper<TIter> iter, Func<TIter, TNode?> current, Func<TIter, bool> moveToSibling, Func<TIter, bool>? moveToChild, Func<TIter, bool>? moveToParent, Action<TIter>? reset) where TIter : class where TNode : IDisposable
Parameters
Returns
Type Parameters
| Name |
Description |
| TIter |
|
| TNode |
|
AsEnumerable<TIter, TNode>(ComWrapper<TIter>, Func<TIter, TNode?>, Func<TIter, bool>, Func<TIter, bool>?, Func<TIter, bool>?, Action<TIter>?)
General method to list all nodes in iterator
Declaration
public static IEnumerable<TNode> AsEnumerable<TIter, TNode>(this ComWrapper<TIter> wrapper, Func<TIter, TNode?> current, Func<TIter, bool> moveToSibling, Func<TIter, bool>? moveToChild, Func<TIter, bool>? moveToParent, Action<TIter>? reset) where TIter : class
Parameters
Returns
Type Parameters
| Name |
Description |
| TIter |
|
| TNode |
|