Method FindNode
FindNode(string)
When implemented by a class, finds child node by its name.
ISyntaxNode FindNode(string name)
Parameters
name
stringSpecifies name of node.
Returns
- ISyntaxNode
First occurrence of
ISyntaxNode
with specified name.
FindNode(int)
When implemented by a class, finds child node by its type.
ISyntaxNode FindNode(int nodeType)
Parameters
nodeType
intSpecifies type of node.
Returns
- ISyntaxNode
First occurrence of
ISyntaxNode
with specified type.
FindNode(ISyntaxNode, IComparer<ISyntaxNode>)
When implemented by a class, finds specified child node.
ISyntaxNode FindNode(ISyntaxNode obj, IComparer<ISyntaxNode> comparer)
Parameters
obj
ISyntaxNodeSpecifies node to locate.
comparer
IComparer<ISyntaxNode>Specifies method that compares nodes in the sorted child collection.
Returns
- ISyntaxNode
ISyntaxNode
that is located.