Пример #1
0
 private Node FindFirstNodeNamed(string nodeName, NodeCollection collection)
 {
     Node[] nodes = collection.Find(nodeName, false);
     return nodes.Length > 0 ? nodes[0] : null;
 }
Пример #2
0
 private Node FindFirstNamed(string name, NodeCollection nodes)
 {
     Node[] found = nodes.Find(name, false);
     return found.Length > 0 ? found[0] : null;
 }