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