Definition at line 321 of file Extensions.cs.
321 : XContainer
322 {
323 foreach (T root
in source)
324 {
325 if (root == null)
326 {
327 continue;
328 }
329 if (self)
330 {
331 XElement
xElement = (XElement)(
object)root;
332 if (name ==
null ||
xElement.name == name)
333 {
335 }
336 }
339 while (true)
340 {
342 {
344 }
345 else
346 {
347 while (i !=
null && i != root && i ==
i.parent.content)
348 {
350 }
351 if (i == null || i == root)
352 {
353 break;
354 }
356 }
357 XElement e =
i as XElement;
358 if (e != null && (name == null || e.name == name))
359 {
361 }
363 }
364 }
365 }
References System.Xml.Dictionary, System.Xml.Linq.XElement.name, and System.source.