2 types derived from XContainer
System.Private.Xml.Linq (2)
System\Xml\Linq\XDocument.cs (1)
27public class XDocument : XContainer
System\Xml\Linq\XElement.cs (1)
36public class XElement : XContainer, IXmlSerializable
101 references to XContainer
Microsoft.CodeAnalysis (1)
InternalUtilities\XmlUtilities.cs (1)
28XContainer temp = new XElement("temp");
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
190XContainer container = node as XContainer;
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
282Dim container = TryCast(node, XContainer)
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\ISymbolExtensions.cs (3)
312var container = node as XContainer; 575XContainer temp = new XElement("temp");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (1)
28XContainer temp = new XElement("temp");
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestParser.cs (1)
115private 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)
346if (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)
123public static IEnumerable<XNode> Nodes<T>(this IEnumerable<T?> source) where T : XContainer 130private static IEnumerable<XNode> NodesIterator<T>(IEnumerable<T?> source) where T : XContainer 132foreach (XContainer? root in source) 152public static IEnumerable<XNode> DescendantNodes<T>(this IEnumerable<T?> source) where T : XContainer 169public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T?> source) where T : XContainer 186public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T?> source, XName? name) where T : XContainer 258public static IEnumerable<XElement> Elements<T>(this IEnumerable<T?> source) where T : XContainer 273public static IEnumerable<XElement> Elements<T>(this IEnumerable<T?> source, XName? name) where T : XContainer 376private static IEnumerable<XNode> GetDescendantNodes<T>(IEnumerable<T?> source, bool self) where T : XContainer 378foreach (XContainer? root in source) 386XContainer? c = n as XContainer; 404private static IEnumerable<XElement> GetDescendants<T>(IEnumerable<T?> source, XName? name, bool self) where T : XContainer 406foreach (XContainer? root in source) 416XContainer? c = root; 437private static IEnumerable<XElement> GetElements<T>(IEnumerable<T?> source, XName? name) where T : XContainer 439foreach (XContainer? root in source)
System\Xml\Linq\XAttribute.cs (2)
59string s = XContainer.GetStringValue(value); 203Value = XContainer.GetStringValue(value);
System\Xml\Linq\XContainer.cs (33)
19/// The two classes that derive from <see cref="XContainer"/> are 28internal 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 686internal bool ContentsEqual(XContainer e) 750XContainer? c = n as XContainer; 774XContainer? c = this; 886private XContainer _currentContainer; 889public ContentReader(XContainer rootContainer) 894public ContentReader(XContainer rootContainer, XmlReader r, LoadOptions o) 901public bool ReadContentFrom(XContainer rootContainer, XmlReader r) 955public async ValueTask<bool> ReadContentFromAsync(XContainer rootContainer, XmlReader r) 1011public bool ReadContentFromContainer(XContainer rootContainer, XmlReader r) 1125public 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)
15private readonly XContainer _parent; 19public Inserter(XContainer parent, XNode? anchor) 111AddString(XContainer.GetStringValue(content)); 622WriteString(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)
543XContainer c = parent;
System\Xml\Linq\XNodeBuilder.cs (5)
12private XContainer? _parent; 15private readonly XContainer _root; 17public XNodeBuilder(XContainer container) 224XContainer? c = n as XContainer;
System\Xml\Linq\XObject.cs (1)
16internal XContainer? parent;
System\Xml\XPath\XNodeNavigator.cs (15)
103XContainer? container = _source as XContainer; 344XContainer? c = _source as XContainer; 362XContainer? c = _source as XContainer; 401XContainer? container = _source as XContainer; 496XContainer? container = currentNode.GetParent(); 541XContainer? container = currentNode.GetParent(); 655XContainer? container = currentNode.GetParent(); 683XContainer? c = _source as XContainer; 748private static bool IsContent(XContainer c, XNode n) 1017XContainer? parentNode = n.GetParent();
System\Xml\XPath\XObjectExtensions.cs (3)
10public static XContainer? GetParent(this XObject obj) 12XContainer? 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))]