35 return GetAncestors(
source,
null,
self:
false);
48 return GetAncestors(
source, name,
self:
false);
57 return GetAncestors(
source,
null,
self:
true);
70 return GetAncestors(
source, name,
self:
true);
90 XNode i = root.LastNode;
98 while (i.parent == root && i != root.content);
109 return GetDescendantNodes(
source,
self:
false);
118 return GetDescendants(
source,
null,
self:
false);
131 return GetDescendants(
source, name,
self:
false);
140 return GetDescendantNodes(
source,
self:
true);
149 return GetDescendants(
source,
null,
self:
true);
162 return GetDescendants(
source, name,
self:
true);
171 return GetElements(
source,
null);
184 return GetElements(
source, name);
206 yield return items[i];
221 for (
int i = 0; i <
length; i++)
235 for (
int i = 0; i <
length; i++)
257 if (name ==
null ||
a.name == name)
276 if (name ==
null || e.
name == name)
286 foreach (T root
in source)
306 while (i !=
null && i != root && i == i.parent.content)
310 if (i ==
null || i == root)
323 foreach (T root
in source)
332 if (name ==
null ||
xElement.name == name)
347 while (i !=
null && i != root && i == i.parent.content)
351 if (i ==
null || i == root)
358 if (e !=
null && (name ==
null || e.
name == name))
369 foreach (T root
in source)
388 while (i.parent == root && i != root.content);
static void Sort(Array array)
static IEnumerable< XNode > Nodes< T >(this IEnumerable< T?> source)
static void Remove(this IEnumerable< XAttribute?> source)
static IEnumerable< XNode > NodesIterator< T >(IEnumerable< T > source)
static IEnumerable< XElement > DescendantsAndSelf(this IEnumerable< XElement?> source, XName? name)
static IEnumerable< XElement > GetElements< T >(IEnumerable< T > source, XName name)
static IEnumerable< XNode > DescendantNodesAndSelf(this IEnumerable< XElement?> source)
static IEnumerable< XElement > DescendantsAndSelf(this IEnumerable< XElement?> source)
static IEnumerable< XElement > AncestorsAndSelf(this IEnumerable< XElement?> source, XName? name)
static IEnumerable< XElement > Elements< T >(this IEnumerable< T?> source)
static IEnumerable< XElement > AncestorsAndSelf(this IEnumerable< XElement?> source)
static IEnumerable< XNode > GetDescendantNodes< T >(IEnumerable< T > source, bool self)
static IEnumerable< T > DocumentOrderIterator< T >(IEnumerable< T > source)
static IEnumerable< XElement > Descendants< T >(this IEnumerable< T?> source)
static IEnumerable< XNode > DescendantNodes< T >(this IEnumerable< T?> source)
static IEnumerable< XElement > GetDescendants< T >(IEnumerable< T > source, XName name, bool self)
static IEnumerable< XAttribute > Attributes(this IEnumerable< XElement?> source)
static IEnumerable< XElement > Ancestors< T >(this IEnumerable< T?> source)
static void Remove< T >(this IEnumerable< T?> source)
static IEnumerable< XElement > GetAncestors< T >(IEnumerable< T > source, XName name, bool self)
static IEnumerable< XAttribute > Attributes(this IEnumerable< XElement?> source, XName? name)
static IEnumerable< T > InDocumentOrder< T >(this IEnumerable< T > source)
static IEnumerable< XAttribute > GetAttributes(IEnumerable< XElement > source, XName name)
static IEnumerable< XAttribute > EmptySequence
static IEnumerable< XElement > EmptySequence
static XNodeDocumentOrderComparer DocumentOrderComparer