private void getSubtasks(JToken subs) { if (subs == null) { return; } foreach (var sub in subs) { SubtaskKeys.Add(sub["key"].Value <string>()); } }
private void getSubtasks(XPathNavigator nav) { var expr = nav.Compile("subtask"); var it = nav.Select(expr); if (!nav.MoveToFirstChild()) { return; } while (it.MoveNext()) { var subKey = it.Current.Value; SubtaskKeys.Add(subKey); } nav.MoveToParent(); }
private void getSubtasks(XPathNavigator nav) { XPathExpression expr = nav.Compile("subtask"); XPathNodeIterator it = nav.Select(expr); if (!nav.MoveToFirstChild()) { return; } while (it.MoveNext()) { string subKey = it.Current.Value; SubtaskKeys.Add(subKey); } nav.MoveToParent(); }