private static bool CompareNodeSetAndNodeSet(ComparisonOperator op, IList<XPathNavigator> left, IList<XPathNavigator> right, TypeCode compType) { int leftLen = left.Count; int rightLen = right.Count; for (int leftIdx = 0; leftIdx < leftLen; leftIdx++) { for (int rightIdx = 0; rightIdx < rightLen; rightIdx++) { if (CompareValues(op, left[leftIdx], right[rightIdx], compType)) { return true; } } } return false; }