1 instantiation of XName
System.Private.Xml.Linq (1)
256 references to XName
BuildBoss (1)
Microsoft.AspNetCore.DataProtection (16)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
Microsoft.Build.Tasks.Core (1)
Microsoft.Cci.Extensions (5)
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (5)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
Microsoft.DotNet.NuGetRepack.Tasks (14)
src\NuGetVersionUpdater.cs (10)
149var metadata = nuspecXml.Element(XName.Get("package", nuspecXmlns))?.Element(XName.Get("metadata", nuspecXmlns));
155packageId = metadata.Element(XName.Get("id", nuspecXmlns))?.Value;
161var versionElement = metadata.Element(XName.Get("version", nuspecXmlns));
266var packageTypesElement = metadata.Element(XName.Get("packageTypes", nuspecXmlns));
269foreach (var packageType in packageTypesElement.Elements(XName.Get("packageType", nuspecXmlns)) ?? Array.Empty<XElement>())
290Element(XName.Get("package", package.NuspecXmlns))?.
291Element(XName.Get("metadata", package.NuspecXmlns))?.
292Element(XName.Get("dependencies", package.NuspecXmlns))?.
293Descendants(XName.Get("dependency", package.NuspecXmlns)) ?? Array.Empty<XElement>();
Microsoft.DotNet.VersionTools (1)
Microsoft.DotNet.XliffTasks (15)
Microsoft.Maui.Resizetizer (13)
Microsoft.VisualStudio.LanguageServices (5)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
netstandard (1)
PresentationFramework-SystemXmlLinq (1)
System.ComponentModel.TypeConverter (10)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (10)
199private XName? _changeState;
354if (e != null && _value.element == e.Parent && _value.name != null && (_value.name == e.Name || _value.name == (_changeState as XName)))
499private readonly Func<XElement, XName?, IEnumerable<T>> _func;
501internal XName? name;
503public XDeferredAxis(Func<XElement, XName?, IEnumerable<T>> func, XElement element, XName? name)
543private readonly Func<XElement, XName, T?> _func;
545internal XName? name;
547public XDeferredSingleton(Func<XElement, XName, T?> func, XElement element, XName? name)
System.Private.Xml.Linq (131)
System\Xml\Linq\Extensions.cs (22)
32/// Returns the <see cref="XAttribute"/>s that have a matching <see cref="XName"/>. Each
34/// of <see cref="XElement"/> are scanned for a matching <see cref="XName"/>.
38/// Attributes with a matching <see cref="XName"/> for every <see cref="XElement"/> in
41public static IEnumerable<XAttribute> Attributes(this IEnumerable<XElement?> source, XName? name)
67/// and it's parent up to the root) that have a matching <see cref="XName"/>. This is done for each
72/// and it's parent up to the root) that have a matching <see cref="XName"/>. This is done for each
75public static IEnumerable<XElement> Ancestors<T>(this IEnumerable<T?> source, XName? name) where T : XNode
104/// that match the passed in <see cref="XName"/>. This is done for each
110/// that match the passed in <see cref="XName"/>. This is done for each
113public static IEnumerable<XElement> AncestorsAndSelf(this IEnumerable<XElement?> source, XName? name)
178/// and their children down to the leaf level) that have a matching <see cref="XName"/>. This is done
183/// and their children down to the leaf level) that have a matching <see cref="XName"/>. This is done
186public static IEnumerable<XElement> Descendants<T>(this IEnumerable<T?> source, XName? name) where T : XContainer
196/// that match the passed in <see cref="XName"/>. This is done for each
234/// to the leaf nodes) that match the passed in <see cref="XName"/>. This is done for
240/// to the leaf nodes) that match the passed in <see cref="XName"/>. This is done for
243public static IEnumerable<XElement> DescendantsAndSelf(this IEnumerable<XElement?> source, XName? name)
273public static IEnumerable<XElement> Elements<T>(this IEnumerable<T?> source, XName? name) where T : XContainer
341private static IEnumerable<XAttribute> GetAttributes(IEnumerable<XElement?> source, XName? name)
360private static IEnumerable<XElement> GetAncestors<T>(IEnumerable<T?> source, XName? name, bool self) where T : XNode
404private static IEnumerable<XElement> GetDescendants<T>(IEnumerable<T?> source, XName? name, bool self) where T : XContainer
437private static IEnumerable<XElement> GetElements<T>(IEnumerable<T?> source, XName? name) where T : XContainer
System.Xml.Linq (1)
System.Xml.XDocument (1)