47 references to Namespace
BuildBoss (1)
ProjectUtil.cs (1)
40Namespace = document.Root.Name.Namespace;
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
176msbuildNS = projDefinition.Root.Name.Namespace;
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlAssert.cs (1)
109&& attribute.Name.Namespace != XNamespace.Xmlns;
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.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.Engine.OM.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.Engine.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
120var ns = doc.Root.Name.Namespace;
Microsoft.DotNet.Build.Tasks.Workloads (2)
Msi\WorkloadPackGroupMsi.wix.cs (2)
93var ns = productDoc.Root.Name.Namespace; 101ns = registryDoc.Root.Name.Namespace;
Microsoft.DotNet.XliffTasks (5)
Model\VsctDocument.cs (3)
20foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 64foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 79foreach (XElement imageTag in Document.Descendants(Document.Root.Name.Namespace + "Bitmap"))
Model\XlfDocument.cs (2)
224XNamespace ns = _document.Root.Name.Namespace; 277XNamespace ns = _document.Root.Name.Namespace;
System.Private.Xml.Linq (12)
System\Xml\Linq\XAttribute.cs (1)
218w.WriteAttributeString(GetPrefixOfNamespace(name.Namespace), name.LocalName, name.NamespaceName, value);
System\Xml\Linq\XLinq.cs (6)
373XNamespace ns = e.Name.Namespace; 381ns = a.Name.Namespace; 392XNamespace ns = e.Name.Namespace; 400ns = a.Name.Namespace; 546XNamespace ns = _element.Name.Namespace; 550ns = a.Name.Namespace;
System\Xml\Linq\XName.cs (1)
32/// <seealso cref="XName.Namespace"/>
System\Xml\Linq\XNodeReader.cs (2)
322string? prefix = e.GetPrefixOfNamespace(e.Name.Namespace); 332string? prefix = a.GetPrefixOfNamespace(a.Name.Namespace);
System\Xml\XPath\XNodeNavigator.cs (2)
235string? prefix = e.GetPrefixOfNamespace(e.Name.Namespace); 249string? prefix = a.GetPrefixOfNamespace(a.Name.Namespace);