5 types derived from XNode
System.Private.Xml.Linq (5)
System\Xml\Linq\XComment.cs (1)
12
public class XComment :
XNode
System\Xml\Linq\XContainer.cs (1)
22
public abstract class XContainer :
XNode
System\Xml\Linq\XDocumentType.cs (1)
13
public class XDocumentType :
XNode
System\Xml\Linq\XProcessingInstruction.cs (1)
12
public class XProcessingInstruction :
XNode
System\Xml\Linq\XText.cs (1)
13
public class XText :
XNode
382 references to XNode
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
503
private static string GetNodeText(
XNode
node)
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
163
return (XElement)
XNode
.ReadFrom(reader);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.AspNetCore.DataProtection.Tests (9)
XmlAssert.cs (9)
14
public static readonly IEqualityComparer<
XNode
> EqualityComparer = new CallbackBasedEqualityComparer<
XNode
>(Core.AreEqual);
55
private static bool AreEqual(IEnumerable<
XNode
> expected, IEnumerable<
XNode
> actual)
57
List<
XNode
> filteredExpected = expected.Where(ShouldIncludeNodeDuringComparison).ToList();
58
List<
XNode
> filteredActual = actual.Where(ShouldIncludeNodeDuringComparison).ToList();
62
internal static bool AreEqual(
XNode
expected,
XNode
actual)
112
private static bool ShouldIncludeNodeDuringComparison(
XNode
node)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
XmlAssert.cs (3)
28
areEqual = areEqual &&
XNode
.DeepEquals(sortedExpectedXDocument, sortedActualXDocument);
62
private static
XNode
SortAttributes(
XNode
node)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (3)
28
areEqual = areEqual &&
XNode
.DeepEquals(sortedExpectedXDocument, sortedActualXDocument);
62
private static
XNode
SortAttributes(
XNode
node)
Microsoft.AspNetCore.OpenApi.SourceGenerators (14)
XmlComments\XmlComment.cs (2)
178
private static void ResolveCrefLink(Compilation compilation,
XNode
node, string elementName)
210
private static void ResolveLangKeyword(
XNode
node, string elementName)
XmlComments\XmlComment.InheritDoc.cs (12)
95
private static
XNode
[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation,
XNode
[] nodes, CancellationToken cancellationToken)
97
var result = new List<
XNode
>();
98
foreach (
var
child in nodes)
106
private static
XNode
[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation,
XNode
node, CancellationToken cancellationToken)
142
private static
XNode
[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
374
where TNode :
XNode
376
XNode
copy;
425
private static
XNode
[]? TrySelectNodes(
XNode
node, string xpath)
432
return xpathResult?.Cast<
XNode
>().ToArray();
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
326
foreach (
XNode
node in document.Root.Nodes()
Microsoft.CodeAnalysis (3)
InternalUtilities\XmlUtilities.cs (3)
17
where TNode :
XNode
19
XNode
copy;
68
internal static XElement[]? TrySelectElements(
XNode
node, string xpath, out string? errorMessage, out bool invalidXPath)
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.CodeAnalysis.CSharp (22)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (22)
125
foreach (
XNode
node in expander.Rewrite(doc, currentXmlFilePath: null, originatingSyntax: null))
147
private
XNode
[] RewriteMany(
XNode
[] nodes, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax)
151
ArrayBuilder<
XNode
> builder = null;
152
foreach (
XNode
child in nodes)
156
builder = ArrayBuilder<
XNode
>.GetInstance();
167
return builder == null ? Array.Empty<
XNode
>() : builder.ToArrayAndFree();
171
private
XNode
[] Rewrite(
XNode
node, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax)
182
XNode
[] rewritten = RewriteIncludeElement(element, currentXmlFilePath, originatingSyntax, out commentMessage);
194
return new
XNode
[] { node.Copy(copyAttributeAnnotations: false) };
197
IEnumerable<
XNode
> oldNodes = container.Nodes();
206
XNode
[] rewritten = RewriteMany(oldNodes.ToArray(), currentXmlFilePath, originatingSyntax);
243
return new
XNode
[] { container }; // Already copied.
248
return new
XNode
[] { failureComment, container }; // Already copied.
266
private
XNode
[] RewriteIncludeElement(XElement includeElement, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax, out string commentMessage)
289
return new
XNode
[] { new XComment(commentMessage), includeElement.Copy(copyAttributeAnnotations: false) };
370
return new
XNode
[] { new XComment(commentMessage) };
375
return Array.Empty<
XNode
>();
382
XNode
[] result = RewriteMany(loadedElements, resolvedFilePath, originatingSyntax);
412
return new
XNode
[] { new XComment(commentMessage) };
417
return Array.Empty<
XNode
>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (1)
357
private object RemoveSequenceNode(
XNode
node)
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
310
private static void AppendTextFromNode(FormatterState state,
XNode
node, Compilation compilation)
415
foreach (
var
childNode in element.Nodes())
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Microsoft.CodeAnalysis.VisualBasic (23)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (23)
248
Private Function RewriteMany(nodes As
XNode
(), currentXmlFilePath As String, originatingSyntax As XmlNodeSyntax) As
XNode
()
251
Dim builder As ArrayBuilder(Of
XNode
) = Nothing
254
builder = ArrayBuilder(Of
XNode
).GetInstance()
264
Return If(builder Is Nothing, Array.Empty(Of
XNode
)(), builder.ToArrayAndFree())
267
Private Function Rewrite(node As
XNode
, currentXmlFilePath As String, originatingSyntax As XmlNodeSyntax) As
XNode
()
275
Dim rewritten As
XNode
() = RewriteIncludeElement(element, currentXmlFilePath, originatingSyntax, commentMessage)
285
Return New
XNode
() {node.Copy(copyAttributeAnnotations:=True)}
288
Dim oldNodes As IEnumerable(Of
XNode
) = container.Nodes
296
Dim rewritten As
XNode
() = RewriteMany(oldNodes.ToArray(), currentXmlFilePath, originatingSyntax)
425
Return New
XNode
() {container}
427
Return New
XNode
() {New XComment(commentMessage), container}
441
Private Function RewriteIncludeElement(includeElement As XElement, currentXmlFilePath As String, originatingSyntax As XmlNodeSyntax, <Out> ByRef commentMessage As String) As
XNode
()
454
Return New
XNode
() {New XComment(commentMessage)}
475
Return New
XNode
() {New XComment(commentMessage)}
484
Return New
XNode
() {New XComment(commentMessage)}
490
Return New
XNode
() {New XComment(commentMessage)}
504
Return New
XNode
() {New XComment(commentMessage)}
515
Return New
XNode
() {New XComment(commentMessage)}
520
Dim result As
XNode
() = RewriteMany(loadedElements, resolvedFilePath, originatingSyntax)
535
Return New
XNode
() {New XComment(commentMessage)}
539
Return New
XNode
() {New XComment(commentMessage)}
Microsoft.CodeAnalysis.Workspaces (12)
Shared\Extensions\ISymbolExtensions.cs (12)
297
private static
XNode
[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation,
XNode
node, CancellationToken cancellationToken)
333
private static
XNode
[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation,
XNode
[] nodes, CancellationToken cancellationToken)
335
var result = new List<
XNode
>();
336
foreach (
var
child in nodes)
344
private static
XNode
[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
563
where TNode :
XNode
565
XNode
copy;
614
private static
XNode
[]? TrySelectNodes(
XNode
node, string xpath)
621
return xpathResult?.Cast<
XNode
>().ToArray();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (3)
17
where TNode :
XNode
19
XNode
copy;
68
internal static XElement[]? TrySelectElements(
XNode
node, string xpath, out string? errorMessage, out bool invalidXPath)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
961
foreach (
var
node in element.Nodes())
netstandard (1)
netstandard.cs (1)
2276
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XNode
))]
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
RulesetToEditorconfigConverter (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
System.Private.Xml.Linq (266)
System\Xml\Linq\Extensions.cs (26)
58
public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T?> source) where T :
XNode
75
public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T?> source, XName? name) where T :
XNode
121
/// Returns an <see cref="IEnumerable"/> of <see cref="
XNode
"/> over the content of a set of nodes
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
136
XNode
? n = root.LastNode;
150
/// Returns an <see cref="IEnumerable"/> of <see cref="
XNode
"/> over the descendants of a set of nodes
152
public static IEnumerable<
XNode
> DescendantNodes<T>(this IEnumerable<T?> source) where T : XContainer
205
public static IEnumerable<
XNode
> DescendantNodesAndSelf(this IEnumerable<XElement?> source)
289
public static IEnumerable<T> InDocumentOrder<T>(this IEnumerable<T> source) where T :
XNode
?
296
private static IEnumerable<T> DocumentOrderIterator<T>(IEnumerable<T> source) where T :
XNode
?
302
Array.Sort(items, 0, count,
XNode
.DocumentOrderComparer);
325
/// Removes each <see cref="
XNode
"/> represented in this <see cref="IEnumerable"/>
326
/// T which must be a derived from <see cref="
XNode
"/>. Note that this method uses snapshot semantics
327
/// (copies the <see cref="
XNode
"/>s to an array before deleting each).
329
public static void Remove<T>(this IEnumerable<T?> source) where T :
XNode
360
private static IEnumerable<XElement> GetAncestors<T>(IEnumerable<T?> source, XName? name, bool self) where T :
XNode
362
foreach (
XNode
? node in source)
376
private static IEnumerable<
XNode
> GetDescendantNodes<T>(IEnumerable<T?> source, bool self) where T : XContainer
383
XNode
? n = root;
387
XNode
? first;
415
XNode
? n = root;
419
if (c != null && c.content is
XNode
)
421
n = ((
XNode
)c.content).next;
443
XNode
? n = root.content as
XNode
;
System\Xml\Linq\XCData.cs (1)
76
internal override
XNode
CloneNode()
System\Xml\Linq\XComment.cs (2)
117
internal override
XNode
CloneNode()
122
internal override bool DeepEquals(
XNode
node)
System\Xml\Linq\XContainer.cs (60)
38
XNode
? n = (
XNode
?)other.content;
53
public
XNode
? FirstNode
64
public
XNode
? LastNode
69
XNode
? n = content as
XNode
;
80
return (
XNode
)content;
143
XNode
? n = content as
XNode
;
253
public IEnumerable<
XNode
> DescendantNodes()
296
XNode
? n = content as
XNode
;
349
public IEnumerable<
XNode
> Nodes()
351
XNode
? n = LastNode;
400
XNode
? last = content as
XNode
;
403
XNode
n = last.next!;
470
XNode
? n = content as
XNode
;
509
internal void AddNode(
XNode
n)
518
XNode
p = this;
526
internal void AddNodeSkipNotify(
XNode
n)
535
XNode
p = this;
613
internal void AppendNode(
XNode
n)
621
internal void AppendNodeSkipNotify(
XNode
n)
630
XNode
x = (
XNode
)content;
646
XNode
? n = (
XNode
?)content;
664
XNode
n = (
XNode
)content;
675
private string CollectText(ref
XNode
? n)
691
XNode
? n1 = content as
XNode
;
692
XNode
? n2 = e.content as
XNode
;
714
XNode
? n = content as
XNode
;
744
internal IEnumerable<
XNode
> GetDescendantNodes(bool self)
747
XNode
n = this;
751
XNode
? first;
773
XNode
n = this;
777
if (c != null && c.content is
XNode
)
779
n = ((
XNode
)c.content).next!;
795
XNode
? n = content as
XNode
;
1013
XNode
? newNode = null;
1127
XNode
? newNode = null;
1242
internal void RemoveNode(
XNode
n)
1248
XNode
p = (
XNode
)content;
1266
XNode
? n = content as
XNode
;
1271
XNode
next = n.next!;
1282
internal virtual void ValidateNode(
XNode
node,
XNode
? previous)
1308
XNode
n = (
XNode
)content;
1343
XNode
n = (
XNode
)content;
System\Xml\Linq\XDocument.cs (10)
865
internal override
XNode
CloneNode()
870
internal override bool DeepEquals(
XNode
node)
881
private T? GetFirstNode<T>() where T :
XNode
883
XNode
? n = content as
XNode
;
896
internal override void ValidateNode(
XNode
node,
XNode
? previous)
916
private void ValidateDocument(
XNode
? previous, XmlNodeType allowBefore, XmlNodeType allowAfter)
918
XNode
? n = content as
XNode
;
System\Xml\Linq\XDocumentType.cs (2)
169
internal override
XNode
CloneNode()
174
internal override bool DeepEquals(
XNode
node)
System\Xml\Linq\XElement.cs (10)
235
XNode
? n = content as
XNode
;
326
/// <seealso cref="
XNode
.Ancestors()"/>
331
/// <seealso cref="
XNode
.Ancestors()"/>
348
/// <seealso cref="
XNode
.Ancestors()"/>
424
public IEnumerable<
XNode
> DescendantNodesAndSelf()
1953
internal override
XNode
CloneNode()
1958
internal override bool DeepEquals(
XNode
node)
2123
internal override void ValidateNode(
XNode
node,
XNode
? previous)
System\Xml\Linq\XLinq.cs (16)
16
private
XNode
? _previous;
19
public Inserter(XContainer parent,
XNode
? anchor)
80
XNode
? n = content as
XNode
;
114
private void AddNode(
XNode
n)
123
XNode
p = _parent;
154
private void InsertNode(
XNode
n)
166
XNode
last = (
XNode
)_parent.content;
210
XNode
n = e;
231
n = ((
XNode
)current.content).next!;
254
XNode
n = e;
276
n = ((
XNode
)current.content).next!;
586
XNode
? n = content as
XNode
;
631
private void WriteNode(
XNode
n)
System\Xml\Linq\XNode.cs (44)
27
/// Note that an <see cref="XAttribute"/> is not an <see cref="
XNode
"/>.
34
internal
XNode
? next;
45
public
XNode
? NextNode
60
public
XNode
? PreviousNode
66
XNode
n = ((
XNode
)parent.content!).next!;
67
XNode
? p = null;
154
XNode
? p = (
XNode
)parent.content!;
224
public static int CompareDocumentOrder(
XNode
? n1,
XNode
? n2)
232
XNode
p1 = n1;
238
XNode
p2 = n2;
273
XNode
n = (
XNode
)n1.parent!.content!;
310
public IEnumerable<
XNode
> NodesAfterSelf()
312
XNode
n = this;
327
public IEnumerable<
XNode
> NodesBeforeSelf()
331
XNode
n = (
XNode
)parent.content!;
399
public bool IsAfter(
XNode
? node)
410
public bool IsBefore(
XNode
? node)
416
/// Creates an <see cref="
XNode
"/> from an <see cref="XmlReader"/>.
421
/// <param name="reader">An <see cref="XmlReader"/> positioned at the node to read into this <see cref="
XNode
"/>.</param>
422
/// <returns>An <see cref="
XNode
"/> that contains the nodes read from the reader.</returns>
426
public static
XNode
ReadFrom(XmlReader reader)
453
/// Creates an <see cref="
XNode
"/> from an <see cref="XmlReader"/>.
458
/// <param name="reader">An <see cref="XmlReader"/> positioned at the node to read into this <see cref="
XNode
"/>.</param>
460
/// <returns>An <see cref="
XNode
"/> that contains the nodes read from the reader.</returns>
464
public static Task<
XNode
> ReadFromAsync(XmlReader reader, CancellationToken cancellationToken)
469
return Task.FromCanceled<
XNode
>(cancellationToken);
473
private static async Task<
XNode
> ReadFromAsyncInternal(XmlReader reader, CancellationToken cancellationToken)
477
XNode
ret;
537
/// Replaces the content of this <see cref="
XNode
"/>.
544
XNode
? p = (
XNode
)parent.content!;
592
/// node. Two <see cref="
XNode
"/> objects of different types are never equal. Two
602
public static bool DeepEquals(
XNode
? n1,
XNode
? n2)
626
internal abstract
XNode
CloneNode();
628
internal abstract bool DeepEquals(
XNode
node);
642
XNode
n = this;
655
XNode
n = (
XNode
)parent.content!;
System\Xml\Linq\XNodeBuilder.cs (1)
214
private void AddNode(
XNode
n)
System\Xml\Linq\XNodeDocumentOrderComparer.cs (10)
16
IComparer<
XNode
?>
31
public int Compare(
XNode
? x,
XNode
? y)
33
return
XNode
.CompareDocumentOrder(x, y);
54
XNode
? n1 = x as
XNode
;
55
if (n1 == null && x != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(
XNode
)), nameof(x));
56
XNode
? n2 = y as
XNode
;
57
if (n2 == null && y != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(
XNode
)), nameof(y));
System\Xml\Linq\XNodeEqualityComparer.cs (19)
16
IEqualityComparer<
XNode
>
26
/// node. Two <see cref="
XNode
"/>s of different types are never equal. Two
37
public bool Equals(
XNode
? x,
XNode
? y)
39
return
XNode
.DeepEquals(x, y);
43
/// Returns a hash code based on an <see cref="
XNode
"/> objects value.
48
/// The <see cref="
XNode
"/> class's implementation of <see cref="object.GetHashCode"/>
52
public int GetHashCode(
XNode
obj)
65
/// node. Two <see cref="
XNode
"/>s of different types are never equal. Two
78
XNode
? n1 = x as
XNode
;
79
if (n1 == null && x != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(
XNode
)), nameof(x));
80
XNode
? n2 = y as
XNode
;
81
if (n2 == null && y != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(
XNode
)), nameof(y));
91
/// The <see cref="
XNode
"/> class's implementation of <see cref="object.GetHashCode"/>
97
XNode
? n = obj as
XNode
;
98
if (n == null && obj != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(
XNode
)), nameof(obj));
System\Xml\Linq\XNodeReader.cs (15)
17
private
XNode
_root;
21
internal XNodeReader(
XNode
node, XmlNameTable? nameTable, ReaderOptions options)
29
internal XNodeReader(
XNode
node, XmlNameTable? nameTable)
930
XNode
? n = _source as
XNode
;
1111
XNode
? n = _source as
XNode
;
1171
XNode
? n = _source as
XNode
;
1186
XNode
? n = d.content as
XNode
;
1207
XNode
? n = e.content as
XNode
;
1252
private bool ReadOverNode(
XNode
n)
1258
XNode
? next = n.next;
System\Xml\Linq\XProcessingInstruction.cs (2)
143
internal override
XNode
CloneNode()
148
internal override bool DeepEquals(
XNode
node)
System\Xml\Linq\XStreamingElement.cs (3)
118
XmlWriterSettings ws =
XNode
.GetXmlWriterSettings(options);
146
XmlWriterSettings ws =
XNode
.GetXmlWriterSettings(options);
185
XmlWriterSettings ws =
XNode
.GetXmlWriterSettings(options);
System\Xml\Linq\XText.cs (2)
123
internal override
XNode
CloneNode()
128
internal override bool DeepEquals(
XNode
node)
System\Xml\Schema\XNodeValidator.cs (2)
324
XNode
? n = e.content as
XNode
;
System\Xml\XPath\XNodeNavigator.cs (41)
51
public XNodeNavigator(
XNode
node, XmlNameTable? nameTable)
106
foreach (
XNode
node in container.Nodes())
370
foreach (
XNode
node in c.Nodes())
404
foreach (
XNode
node in container.Nodes())
493
XNode
? currentNode = _source as
XNode
;
499
XNode
? next;
500
for (
XNode
node = currentNode; node != null; node = next)
520
XNode
? currentNode = _source as
XNode
;
538
XNode
? currentNode = _source as
XNode
;
549
XNode
? next;
550
for (
XNode
node = currentNode; ; node = next)
641
XNode
? parentNode = _source.GetParent();
652
XNode
? currentNode = _source as
XNode
;
658
XNode
? previous = null;
659
foreach (
XNode
node in container.Nodes())
729
foreach (
XNode
node in n.NodesAfterSelf())
748
private static bool IsContent(XContainer c,
XNode
n)
866
public static object Evaluate<T>(
XNode
node, string expression, IXmlNamespaceResolver? resolver) where T : class
907
/// Creates an <see cref="XPathNavigator"/> for a given <see cref="
XNode
"/>
909
/// <param name="node">Extension point <see cref="
XNode
"/></param>
911
public static XPathNavigator CreateNavigator(this
XNode
node)
917
/// Creates an <see cref="XPathNavigator"/> for a given <see cref="
XNode
"/>
919
/// <param name="node">Extension point <see cref="
XNode
"/></param>
923
public static XPathNavigator CreateNavigator(this
XNode
node, XmlNameTable? nameTable)
940
/// <param name="node">Extension point <see cref="
XNode
"/></param>
944
public static object XPathEvaluate(this
XNode
node, string expression)
952
/// <param name="node">Extension point <see cref="
XNode
"/></param>
958
public static object XPathEvaluate(this
XNode
node, string expression, IXmlNamespaceResolver? resolver)
968
/// <param name="node">Extension point <see cref="
XNode
"/></param>
971
public static XElement? XPathSelectElement(this
XNode
node, string expression)
979
/// <param name="node">Extension point <see cref="
XNode
"/></param>
984
public static XElement? XPathSelectElement(this
XNode
node, string expression, IXmlNamespaceResolver? resolver)
992
/// <param name="node">Extension point <see cref="
XNode
"/></param>
995
public static IEnumerable<XElement> XPathSelectElements(this
XNode
node, string expression)
1003
/// <param name="node">Extension point <see cref="
XNode
"/></param>
1008
public static IEnumerable<XElement> XPathSelectElements(this
XNode
node, string expression, IXmlNamespaceResolver? resolver)
1022
foreach (
XNode
node in parentNode.Nodes())
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
18
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XNode
))]
System.Xml.XDocument (1)
artifacts\obj\System.Xml.XDocument\Debug\net10.0\System.Xml.XDocument.Forwards.cs (1)
17
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
XNode
))]
System.Xml.XPath.XDocument (3)
System\Xml\XPath\XDocumentExtensions.cs (3)
12
private readonly
XNode
_node;
13
public XDocumentNavigable(
XNode
n)
22
public static IXPathNavigable ToXPathNavigable(this
XNode
node)
Test.Utilities (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
143
foreach (
var
node in childNode.Nodes())