2 types derived from XContainer
System.Private.Xml.Linq (2)
System\Xml\Linq\XDocument.cs (1)
27
public class XDocument :
XContainer
System\Xml\Linq\XElement.cs (1)
36
public class XElement :
XContainer
, IXmlSerializable
101 references to XContainer
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
28
XContainer
temp = new XElement("temp");
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
190
XContainer
container = node as
XContainer
;
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
282
Dim container = TryCast(node,
XContainer
)
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\ISymbolExtensions.cs (3)
312
var
container = node as
XContainer
;
575
XContainer
temp = new XElement("temp");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
28
XContainer
temp = new XElement("temp");
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestParser.cs (1)
115
private static XElement EnsureElement(
XContainer
container, string elementName)
netstandard (1)
netstandard.cs (1)
2269
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XContainer
))]
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
346
if (e != null && _value.element == (_changeState as
XContainer
) && (_value.name == e.Name || _value.name == null))
System.Private.Xml.Linq (88)
System\Xml\Linq\Extensions.cs (17)
123
public static IEnumerable<XNode> Nodes<T>(this IEnumerable<T?> source) where T :
XContainer
130
private static IEnumerable<XNode> NodesIterator<T>(IEnumerable<T?> source) where T :
XContainer
132
foreach (
XContainer
? root in source)
152
public static IEnumerable<XNode> DescendantNodes<T>(this IEnumerable<T?> source) where T :
XContainer
169
public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T?> source) where T :
XContainer
186
public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T?> source, XName? name) where T :
XContainer
258
public static IEnumerable<XElement> Elements<T>(this IEnumerable<T?> source) where T :
XContainer
273
public static IEnumerable<XElement> Elements<T>(this IEnumerable<T?> source, XName? name) where T :
XContainer
376
private static IEnumerable<XNode> GetDescendantNodes<T>(IEnumerable<T?> source, bool self) where T :
XContainer
378
foreach (
XContainer
? root in source)
386
XContainer
? c = n as
XContainer
;
404
private static IEnumerable<XElement> GetDescendants<T>(IEnumerable<T?> source, XName? name, bool self) where T :
XContainer
406
foreach (
XContainer
? root in source)
416
XContainer
? c = root;
437
private static IEnumerable<XElement> GetElements<T>(IEnumerable<T?> source, XName? name) where T :
XContainer
439
foreach (
XContainer
? root in source)
System\Xml\Linq\XAttribute.cs (2)
59
string s =
XContainer
.GetStringValue(value);
203
Value =
XContainer
.GetStringValue(value);
System\Xml\Linq\XContainer.cs (33)
19
/// The two classes that derive from <see cref="
XContainer
"/> are
28
internal XContainer(
XContainer
other)
85
/// Adds the specified content as a child (or as children) to this <see cref="
XContainer
"/>. The
90
/// Adds the specified content as a child (or children) of this <see cref="
XContainer
"/>.
183
/// Adds the specified content as a child (or children) of this <see cref="
XContainer
"/>.
210
/// See <see cref="
XContainer
.Add(object)"/> for details about the content that can be added
238
/// or attributes to the <see cref="
XContainer
"/>. The later option
250
/// Get descendant elements plus leaf nodes contained in an <see cref="
XContainer
"/>
259
/// Returns the descendant <see cref="XElement"/>s of this <see cref="
XContainer
"/>. Note this method will
265
/// An IEnumerable of <see cref="XElement"/> with all of the descendants below this <see cref="
XContainer
"/> in the XML tree.
286
/// <seealso cref="
XContainer
.Elements()"/>
289
/// The <see cref="XName"/> to match against this <see cref="
XContainer
"/>s child elements.
310
/// Returns the child <see cref="XElement"/>s of this <see cref="
XContainer
"/>.
313
/// Returns all of the child elements of this <see cref="
XContainer
"/>.
316
/// An <see cref="IEnumerable"/> over all of this <see cref="
XContainer
"/>'s child <see cref="XElement"/>s.
324
/// Returns the child elements of this <see cref="
XContainer
"/> that match the <see cref="XName"/> passed in.
327
/// The <see cref="XName"/> to match against the <see cref="XElement"/> children of this <see cref="
XContainer
"/>.
330
/// An <see cref="IEnumerable"/> of <see cref="XElement"/> children of this <see cref="
XContainer
"/> that have
339
/// Returns the content of this <see cref="
XContainer
"/>. Note that the content does not
344
/// Returns the content of this <see cref="
XContainer
"/> as an <see cref="IEnumerable"/> of <see cref="object"/>. Note
348
/// <returns>The contents of this <see cref="
XContainer
"/></returns>
363
/// Removes the nodes from this <see cref="
XContainer
"/>. Note this
686
internal bool ContentsEqual(
XContainer
e)
750
XContainer
? c = n as
XContainer
;
774
XContainer
? c = this;
886
private
XContainer
_currentContainer;
889
public ContentReader(
XContainer
rootContainer)
894
public ContentReader(
XContainer
rootContainer, XmlReader r, LoadOptions o)
901
public bool ReadContentFrom(
XContainer
rootContainer, XmlReader r)
955
public async ValueTask<bool> ReadContentFromAsync(
XContainer
rootContainer, XmlReader r)
1011
public bool ReadContentFromContainer(
XContainer
rootContainer, XmlReader r)
1125
public async ValueTask<bool> ReadContentFromContainerAsync(
XContainer
rootContainer, XmlReader r)
System\Xml\Linq\XDocument.cs (2)
59
/// See <see cref="
XContainer
.Add(object)"/> for details about the content that can be added
87
/// See <see cref="
XContainer
.Add(object)"/> for details about the content that can be added
System\Xml\Linq\XElement.cs (3)
25
/// and can optionally contain content (see <see cref="
XContainer
.Nodes"/>.
393
/// <seealso cref="
XContainer
.Elements()"/>
917
/// <seealso cref="
XContainer
.RemoveNodes"/>
System\Xml\Linq\XLinq.cs (6)
15
private readonly
XContainer
_parent;
19
public Inserter(
XContainer
parent, XNode? anchor)
111
AddString(
XContainer
.GetStringValue(content));
622
WriteString(
XContainer
.GetStringValue(content));
660
/// An <see cref="XObject"/> has been or will be added to an <see cref="
XContainer
"/>.
665
/// An <see cref="XObject"/> has been or will be removed from an <see cref="
XContainer
"/>.
System\Xml\Linq\XNode.cs (1)
543
XContainer
c = parent;
System\Xml\Linq\XNodeBuilder.cs (5)
12
private
XContainer
? _parent;
15
private readonly
XContainer
_root;
17
public XNodeBuilder(
XContainer
container)
224
XContainer
? c = n as
XContainer
;
System\Xml\Linq\XObject.cs (1)
16
internal
XContainer
? parent;
System\Xml\XPath\XNodeNavigator.cs (15)
103
XContainer
? container = _source as
XContainer
;
344
XContainer
? c = _source as
XContainer
;
362
XContainer
? c = _source as
XContainer
;
401
XContainer
? container = _source as
XContainer
;
496
XContainer
? container = currentNode.GetParent();
541
XContainer
? container = currentNode.GetParent();
655
XContainer
? container = currentNode.GetParent();
683
XContainer
? c = _source as
XContainer
;
748
private static bool IsContent(
XContainer
c, XNode n)
1017
XContainer
? parentNode = n.GetParent();
System\Xml\XPath\XObjectExtensions.cs (3)
10
public static
XContainer
? GetParent(this XObject obj)
12
XContainer
? ret = (
XContainer
?)obj.Parent ?? obj.Document;
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
11
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XContainer
))]
System.Xml.XDocument (1)
artifacts\obj\System.Xml.XDocument\Debug\net10.0\System.Xml.XDocument.Forwards.cs (1)
10
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XContainer
))]