 | graphToolsGetChildAtPathT Method |
imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets a child at given relative path
Namespace:
imbSCI.Data.collection.graph
Assembly:
imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntaxpublic static T GetChildAtPath<T>(
this T parent,
string path,
string customSeparator = "",
bool returnParentIfNotFound = true
)
where T : IGraphNode
Request Example
View SourceParameters
- parent
- Type: T
The parent, from which the path should be interpretted. - path
- Type: SystemString
Relative path, given with separator defined by {T} or specified. If a path segment not found it will skip it - customSeparator (Optional)
- Type: SystemString
Custom separator - to be used instead of one defined by the {T}. - returnParentIfNotFound (Optional)
- Type: SystemBoolean
if set to true [return parent if not found].
Type Parameters
- T
Return Value
Type:
T
Child at path or parent (if no path segment could be matched)
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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