Class NamedPropIterator
Static class, implementing the search for parameters for complex names that may include points and brackets.
Inheritance
object
NamedPropIterator
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public static class NamedPropIterator : Object
Methods
FindNode(string, INamedProperty)
Searches inside a Root node, a property with the specified name Name
. Names can be complex consisting of
brackets and points. Points and brackets separate the names of child elements of different levels.
For example: NamedPropIterator.FindNode("Project.Operations", cldProject)
.
The case of characters does not matter.
Usually you don't need to call this method manually. The system calls it automatically when you ask some child parameter by name from an object that implements INamedProperty interface.Declaration
public static INamedProperty? FindNode(string Name, INamedProperty Root)
Parameters
Type | Name | Description |
---|---|---|
string | Name | The name of parameter you want to find. Can be complex, containing points and brackets. |
INamedProperty | Root | Object among whose child parameters you want to look for the property. |
Returns
Type | Description |
---|---|
INamedProperty | If the searching finished successfully it returns the link to the found property.
If the searching fails it returns |