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