47 references to GetName
BuildBoss (2)
ProjectUtil.cs (2)
120var referenceOutputAssemblyValue = r.Element(Namespace.GetName("ReferenceOutputAssembly"))?.Value ?? r.Attribute(XName.Get("ReferenceOutputAssembly"))?.Value; 130var projectElement = r.Element(Namespace.GetName("Project"));
Microsoft.AspNetCore.DataProtection (2)
XmlConstants.cs (2)
31internal static readonly XName EncryptedSecretElementName = RootNamespace.GetName("encryptedSecret"); 36internal static readonly XName RequiresEncryptionAttributeName = RootNamespace.GetName("requiresEncryption");
Microsoft.AspNetCore.Mvc.FunctionalTests (18)
XmlDataContractSerializerFormattersWrappingTest.cs (9)
238Assert.Equal("404", root.Element(root.Name.Namespace.GetName("status"))?.Value); 239Assert.Equal("Not Found", root.Element(root.Name.Namespace.GetName("title"))?.Value); 240Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.5", root.Element(root.Name.Namespace.GetName("type"))?.Value); 242Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 281Assert.Equal("400", root.Element(root.Name.Namespace.GetName("status"))?.Value); 282Assert.Equal("One or more validation errors occurred.", root.Element(root.Name.Namespace.GetName("title"))?.Value); 283var mvcErrors = root.Element(root.Name.Namespace.GetName("MVC-Errors")); 285Assert.Equal("The State field is required.", mvcErrors.Element(root.Name.Namespace.GetName("State"))?.Value); 287Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
XmlSerializerFormattersWrappingTest.cs (9)
221Assert.Equal("404", root.Element(root.Name.Namespace.GetName("status"))?.Value); 222Assert.Equal("Not Found", root.Element(root.Name.Namespace.GetName("title"))?.Value); 223Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.5", root.Element(root.Name.Namespace.GetName("type"))?.Value); 225Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value); 263Assert.Equal("400", root.Element(root.Name.Namespace.GetName("status"))?.Value); 264Assert.Equal("One or more validation errors occurred.", root.Element(root.Name.Namespace.GetName("title"))?.Value); 265var mvcErrors = root.Element(root.Name.Namespace.GetName("MVC-Errors")); 267Assert.Equal("The State field is required.", mvcErrors.Element(root.Name.Namespace.GetName("State"))?.Value); 269Assert.NotNull(root.Element(root.Name.Namespace.GetName("traceId"))?.Value);
Microsoft.DotNet.Arcade.Sdk (2)
src\SourceBuild\AddSourceToNuGetConfig.cs (1)
37return document.Root.GetDefaultNamespace().GetName(plainName);
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
49return root.GetDefaultNamespace().GetName(plainName);
Microsoft.DotNet.Build.Tasks.Installers (1)
src\StabilizeWixFileId.cs (1)
55XName GetQualifiedName(string name) => rootNamespace.GetName(name);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
191.GetName(WriteBuildOutputProps.CreationTimePropertyName))
System.Private.Xml.Linq (21)
System\Xml\Linq\XContainer.cs (8)
906XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 911e.AppendAttributeSkipNotify(new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value)); 960XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 966_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), 1020XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 1033XAttribute a = new XAttribute(_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value); 1134XElement e = new XElement(_eCache.Get(r.NamespaceURI).GetName(r.LocalName)); 1148_aCache.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName),
System\Xml\Linq\XElement.cs (2)
2049name = XNamespace.Get(r.NamespaceURI).GetName(r.LocalName); 2071XAttribute a = new XAttribute(XNamespace.Get(r.Prefix.Length == 0 ? string.Empty : r.NamespaceURI).GetName(r.LocalName), r.Value);
System\Xml\Linq\XName.cs (2)
83return XNamespace.None.GetName(expandedName); 95return XNamespace.Get(namespaceName).GetName(localName);
System\Xml\Linq\XNamespace.cs (1)
145return ns.GetName(localName);
System\Xml\Linq\XNodeBuilder.cs (2)
169_attrName = XNamespace.Get(prefix.Length == 0 ? string.Empty : namespaceName!).GetName(localName); 183AddNode(new XElement(XNamespace.Get(namespaceName!).GetName(localName)));
System\Xml\Linq\XNodeReader.cs (2)
399XName name = XNamespace.Xml.GetName("lang"); 425XName name = XNamespace.Xml.GetName("space");
System\Xml\Schema\XNodeValidator.cs (3)
36xsiTypeName = xsi.GetName("type"); 37xsiNilName = xsi.GetName("nil"); 288a = new XAttribute(XNamespace.Get(sa.QualifiedName.Namespace).GetName(sa.QualifiedName.Name), GetDefaultValue(sa)!);
System\Xml\XPath\XNodeNavigator.cs (1)
843System.Threading.Interlocked.CompareExchange(ref s_XmlNamespaceDeclaration, new XAttribute(XNamespace.Xmlns.GetName("xml"), xmlPrefixNamespace), null);