5 types derived from XNode
System.Xml.Linq (5)
System\Xml\Linq\XLinq.cs (5)
2175public class XText : XNode 2316public abstract class XContainer : XNode 6037public class XComment : XNode 6131public class XProcessingInstruction : XNode 6363public class XDocumentType : XNode
264 references to XNode
System.Data.Linq (2)
SortableBindingList.cs (2)
107return (t.Equals(typeof(XNode)) || t.IsSubclassOf(typeof(XNode)));
System.Data.Services.Client (1)
System\Data\Services\Client\AtomMaterializer.cs (1)
1479var node = element.Nodes().Where(n => n.NodeType == XmlNodeType.Text || n.NodeType == XmlNodeType.SignificantWhitespace).FirstOrDefault();
System.Data.Services.Design (3)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (3)
441List<XNode> unexpectedNodes = null; 443foreach (XNode node in parent.Nodes()) 483foreach (var node in unexpectedNodes)
System.Xml.Linq (258)
System\Xml\Linq\XLinq.cs (212)
1455/// Note that an <see cref="XAttribute"/> is not an <see cref="XNode"/>. 1462internal XNode next; 1473public XNode NextNode { 1486public XNode PreviousNode { 1489XNode n = ((XNode)parent.content).next; 1490XNode p = null; 1583XNode p = (XNode)parent.content; 1651public static int CompareDocumentOrder(XNode n1, XNode n2) { 1657XNode p1 = n1; 1662XNode p2 = n2; 1690XNode n = (XNode)n1.parent.content; 1724public IEnumerable<XNode> NodesAfterSelf() { 1725XNode n = this; 1739public IEnumerable<XNode> NodesBeforeSelf() { 1741XNode n = (XNode)parent.content; 1804public bool IsAfter(XNode node) { 1814public bool IsBefore(XNode node) { 1819/// Creates an <see cref="XNode"/> from an <see cref="XmlReader"/>. 1824/// <param name="reader">An <see cref="XmlReader"/> positioned at the node to read into this <see cref="XNode"/>.</param> 1825/// <returns>An <see cref="XNode"/> that contains the nodes read from the reader.</returns> 1829public static XNode ReadFrom(XmlReader reader) { 1870/// Replaces the content of this <see cref="XNode"/>. 1876XNode p = (XNode)parent.content; 1921/// node. Two <see cref="XNode"/> objects of different types are never equal. Two 1932public static bool DeepEquals(XNode n1, XNode n2) { 1947internal abstract XNode CloneNode(); 1949internal abstract bool DeepEquals(XNode node); 1960XNode n = this; 1970XNode n = (XNode)parent.content; 2033IComparer<XNode> 2048public int Compare(XNode x, XNode y) { 2049return XNode.CompareDocumentOrder(x, y); 2070XNode n1 = x as XNode; 2071if (n1 == null && x != null) throw new ArgumentException(Res.GetString(Res.Argument_MustBeDerivedFrom, typeof(XNode)), "x"); 2072XNode n2 = y as XNode; 2073if (n2 == null && y != null) throw new ArgumentException(Res.GetString(Res.Argument_MustBeDerivedFrom, typeof(XNode)), "y"); 2087IEqualityComparer<XNode> 2097/// node. Two <see cref="XNode"/>s of different types are never equal. Two 2108public bool Equals(XNode x, XNode y) { 2109return XNode.DeepEquals(x, y); 2113/// Returns a hash code based on an <see cref="XNode"/> objects value. 2118/// The <see cref="XNode"/> class's implementation of <see cref="Object.GetHashCode"/> 2122public int GetHashCode(XNode obj) { 2135/// node. Two <see cref="XNode"/>s of different types are never equal. Two 2147XNode n1 = x as XNode; 2148if (n1 == null && x != null) throw new ArgumentException(Res.GetString(Res.Argument_MustBeDerivedFrom, typeof(XNode)), "x"); 2149XNode n2 = y as XNode; 2150if (n2 == null && y != null) throw new ArgumentException(Res.GetString(Res.Argument_MustBeDerivedFrom, typeof(XNode)), "y"); 2160/// The <see cref="XNode"/> class's implementation of <see cref="Object.GetHashCode"/> 2165XNode n = obj as XNode; 2166if (n == null && obj != null) throw new ArgumentException(Res.GetString(Res.Argument_MustBeDerivedFrom, typeof(XNode)), "obj"); 2249internal override XNode CloneNode() { 2253internal override bool DeepEquals(XNode node) { 2304internal override XNode CloneNode() { 2328XNode n = (XNode)other.content; 2341public XNode FirstNode { 2343XNode last = LastNode; 2351public XNode LastNode { 2354XNode n = content as XNode; 2364return (XNode)content; 2425XNode n = content as XNode; 2525public IEnumerable<XNode> DescendantNodes() { 2564XNode n = content as XNode; 2613public IEnumerable<XNode> Nodes() { 2614XNode n = LastNode; 2653XNode last = content as XNode; 2655XNode n = last.next; 2715XNode n = content as XNode; 2748internal void AddNode(XNode n) { 2754XNode p = this; 2762internal void AddNodeSkipNotify(XNode n) { 2768XNode p = this; 2829internal void AppendNode(XNode n) { 2836internal void AppendNodeSkipNotify(XNode n) { 2842XNode x = (XNode)content; 2855XNode n = (XNode)content; 2869XNode n = (XNode)content; 2879string CollectText(ref XNode n) { 2892XNode n1 = content as XNode; 2893XNode n2 = e.content as XNode; 2912XNode n = content as XNode; 2941internal IEnumerable<XNode> GetDescendantNodes(bool self) { 2943XNode n = this; 2946XNode first; 2964XNode n = this; 2967if (c != null && c.content is XNode) { 2968n = ((XNode)c.content).next; 2982XNode n = content as XNode; 3095XNode n = null; 3197internal void RemoveNode(XNode n) { 3200XNode p = (XNode)content; 3215XNode n = content as XNode; 3218XNode next = n.next; 3229internal virtual void ValidateNode(XNode node, XNode previous) { 3246XNode n = (XNode)content; 3278XNode previous; 3281public Inserter(XContainer parent, XNode anchor) { 3327XNode n = content as XNode; 3356void AddNode(XNode n) { 3362XNode p = parent; 3387void InsertNode(XNode n) { 3396XNode last = (XNode)parent.content; 3561XNode n = content as XNode; 3640/// <seealso cref="XNode.Ancestors()"/> 3645/// <seealso cref="XNode.Ancestors()"/> 3661/// <seealso cref="XNode.Ancestors()"/> 3731public IEnumerable<XNode> DescendantNodesAndSelf() { 5018internal override XNode CloneNode() { 5022internal override bool DeepEquals(XNode node) { 5133internal override void ValidateNode(XNode node, XNode previous) { 5152XNode n = e; 5167n = ((XNode)e.content).next; 5963internal override XNode CloneNode() { 5967internal override bool DeepEquals(XNode node) { 5976T GetFirstNode<T>() where T : XNode { 5977XNode n = content as XNode; 5995internal override void ValidateNode(XNode node, XNode previous) { 6013void ValidateDocument(XNode previous, XmlNodeType allowBefore, XmlNodeType allowAfter) { 6014XNode n = content as XNode; 6114internal override XNode CloneNode() { 6118internal override bool DeepEquals(XNode node) { 6231internal override XNode CloneNode() { 6235internal override bool DeepEquals(XNode node) { 6508internal override XNode CloneNode() { 6512internal override bool DeepEquals(XNode node) { 7284XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 7310XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 7335XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 7447XNode n = content as XNode; 7485void WriteNode(XNode n) { 7555public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T> source) where T: XNode { 7570public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T> source, XName name) where T: XNode { 7610/// Returns an <see cref="IEnumerable"/> of <see cref="XNode"/> over the content of a set of nodes 7612public static IEnumerable<XNode> Nodes<T>(this IEnumerable<T> source) where T: XContainer { 7616XNode n = root.LastNode; 7628/// Returns an <see cref="IEnumerable"/> of <see cref="XNode"/> over the descendants of a set of nodes 7630public static IEnumerable<XNode> DescendantNodes<T>(this IEnumerable<T> source) where T: XContainer { 7677public static IEnumerable<XNode> DescendantNodesAndSelf(this IEnumerable<XElement> source) { 7751public static IEnumerable<T> InDocumentOrder<T>(this IEnumerable<T> source) where T: XNode { 7752return Enumerable.OrderBy(source, n => (XNode)n, XNode.DocumentOrderComparer); 7767/// Removes each <see cref="XNode"/> represented in this <see cref="IEnumerable"/> 7768/// T which must be a derived from <see cref="XNode"/>. Note that this method uses snapshot semantics 7769/// (copies the <see cref="XNode"/>s to a List before deleting each). 7771public static void Remove<T>(this IEnumerable<T> source) where T: XNode { 7791static IEnumerable<XElement> GetAncestors<T>(IEnumerable<T> source, XName name, bool self) where T: XNode { 7792foreach (XNode node in source) { 7803static IEnumerable<XNode> GetDescendantNodes<T>(IEnumerable<T> source, bool self) where T: XContainer { 7807XNode n = root; 7810XNode first; 7832XNode n = root; 7835if (c != null && c.content is XNode) { 7836n = ((XNode)c.content).next; 7854XNode n = root.content as XNode; 8031void AddNode(XNode n) { 8069XNode root; 8077internal XNodeReader(XNode node, XmlNameTable nameTable, ReaderOptions options) { 8084internal XNodeReader(XNode node, XmlNameTable nameTable) 8783XNode n = source as XNode; 8836XNode n = this.root; 8960XNode n = source as XNode; 9008XNode n = source as XNode; 9020XNode n = d.content as XNode; 9037XNode n = e.content as XNode; 9074bool ReadOverNode(XNode n) { 9078XNode next = n.next;
System\Xml\Linq\XNodeNavigator.cs (44)
47public XNodeNavigator(XNode node, XmlNameTable nameTable) { 93XNode n = c.content as XNode; 313XNode n = c.content as XNode; 333XNode n = c.content as XNode; 384XNode n = c.content as XNode; 467XNode n = source as XNode; 472XNode next = n.next; 485XNode n = source as XNode; 505XNode n = source as XNode; 514XNode next = n.next; 594XNode n = source as XNode; 598XNode q = (XNode)c.content; 600XNode p = null; 671static bool IsContent(XContainer c, XNode n) { 779public object Evaluate<T>(XNode node, string expression, IXmlNamespaceResolver resolver) where T : class { 812/// Creates an <see cref="XPathNavigator"/> for a given <see cref="XNode"/> 814/// <param name="node">Extension point <see cref="XNode"/></param> 816public static XPathNavigator CreateNavigator(this XNode node) { 821/// Creates an <see cref="XPathNavigator"/> for a given <see cref="XNode"/> 823/// <param name="node">Extension point <see cref="XNode"/></param> 827public static XPathNavigator CreateNavigator(this XNode node, XmlNameTable nameTable) { 841/// <param name="node">Extension point <see cref="XNode"/></param> 845public static object XPathEvaluate(this XNode node, string expression) { 852/// <param name="node">Extension point <see cref="XNode"/></param> 858public static object XPathEvaluate(this XNode node, string expression, IXmlNamespaceResolver resolver) { 866/// <param name="node">Extension point <see cref="XNode"/></param> 869public static XElement XPathSelectElement(this XNode node, string expression) { 876/// <param name="node">Extension point <see cref="XNode"/></param> 881public static XElement XPathSelectElement(this XNode node, string expression, IXmlNamespaceResolver resolver) { 888/// <param name="node">Extension point <see cref="XNode"/></param> 891public static IEnumerable<XElement> XPathSelectElements(this XNode node, string expression) { 898/// <param name="node">Extension point <see cref="XNode"/></param> 903public static IEnumerable<XElement> XPathSelectElements(this XNode node, string expression, IXmlNamespaceResolver resolver) { 912XNode p = (XNode)n.parent.content;
System\Xml\Linq\XNodeValidator.cs (2)
270XNode n = e.content as XNode;