45 references to Get
Microsoft.AspNetCore.DataProtection.Tests (1)
XmlEncryption\CertificateXmlEncryptionTests.cs (1)
50Assert.Equal(XName.Get("EncryptedData", "http://www.w3.org/2001/04/xmlenc#"), encryptedXmlInfo.EncryptedElement.Name);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
AsyncEnumerableTestBase.cs (2)
89var projects = xml.Root.Elements(XName.Get("Project", @namespace)); 97var name = element.Element(XName.Get("Name", @namespace));
Microsoft.Build.Tasks.Core (1)
ResourceHandling\MSBuildResXReader.cs (1)
116bool preserve = elem.Attribute(XName.Get("space", "http://www.w3.org/XML/1998/namespace"))?.Value == "preserve";
Microsoft.Cci.Extensions (5)
Dgml\DgmlExtensions.cs (5)
31var xRoot = new XElement(XName.Get("DirectedGraph", dgmlNsp)); 34var xNodes = new XElement(XName.Get("Nodes", dgmlNsp)); 41var xNode = new XElement(XName.Get("Node", dgmlNsp), 47var xLinks = new XElement(XName.Get("Links", dgmlNsp)); 54var xLink = new XElement(XName.Get("Link", dgmlNsp),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
SolutionGeneration.cs (3)
265var propertyGroup = document.Root.Descendants(XName.Get("PropertyGroup", NS)).First(); 333return new XElement(XName.Get(name, NS)); 338element.Add(new XElement(XName.Get(elementName, NS), elementValue));
VisualStudioMSBuildWorkspaceTests.cs (4)
2439r => r.Add(new XElement(XName.Get("ReferenceOutputAssembly", MSBuildNamespace), "false"))); 2459r => r.Add(new XElement(XName.Get("ReferenceOutputAssembly", MSBuildNamespace), "false"))); 2496var projectReferenceItems = document.Descendants(XName.Get("ProjectReference", MSBuildNamespace)); 2511r => r.Elements(XName.Get("Project", MSBuildNamespace)).Remove());
Microsoft.DotNet.Build.Tasks.VisualStudio (2)
Vsix\FinalizeInsertionVsixFile.cs (2)
79var installationElement = document.Element(XName.Get("PackageManifest", VsixNamespace))?.Element(XName.Get("Installation", VsixNamespace));
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>();
src\ReplacePackageParts.cs (4)
155var metadata = nuspecXml.Element(XName.Get("package", nuspecXmlns))?.Element(XName.Get("metadata", nuspecXmlns)); 162packageId = metadata.Element(XName.Get("id", nuspecXmlns))?.Value; 169var versionElement = metadata.Element(XName.Get("version", nuspecXmlns));
Microsoft.DotNet.XliffTasks (6)
Model\XamlRuleDocument.cs (6)
30var descendentDisplayName = element.Elements(XName.Get($"{element.Name.LocalName}.DisplayName", element.Name.NamespaceName)).FirstOrDefault(); 31var descendentDescription = element.Elements(XName.Get($"{element.Name.LocalName}.Description", element.Name.NamespaceName)).FirstOrDefault(); 53var localizableProperties = element.Attribute(XName.Get(LocalizedPropertiesAttributeName, XliffTasksNs))?.Value?.Split(';'); 60if (element.Elements(XName.Get($"{element.Name.LocalName}.{localizableProperty}", element.Name.NamespaceName)).FirstOrDefault() is { } descendentValue) 82else if (AttributedName(element) == "SearchTerms" && (XmlName(attribute) == "Value" || element.Elements(XName.Get($"{element.Name.LocalName}.Value", element.Name.NamespaceName)).FirstOrDefault() is { })) 93else if (element.Elements(XName.Get($"{element.Name.LocalName}.Value", element.Name.NamespaceName)).FirstOrDefault() is { } descendentValue)
Microsoft.VisualStudio.LanguageServices (4)
Snippets\SnippetExpansionClient.cs (4)
310var codeNode = snippetNode.Element(XName.Get("Code", ns)); 1080var referencesNode = snippetNode.Element(XName.Get("References", snippetNode.Name.NamespaceName)); 1090var assemblyXmlName = XName.Get("Assembly", snippetNode.Name.NamespaceName); 1093foreach (var reference in referencesNode.Elements(XName.Get("Reference", snippetNode.Name.NamespaceName)))
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Snippets\CSharpSnippetExpansionLanguageHelper.cs (3)
78var importsNode = snippetNode.Element(XName.Get("Imports", snippetNode.Name.NamespaceName)); 111var namespaceXmlName = XName.Get("Namespace", snippetNode.Name.NamespaceName); 115foreach (var import in importsNode.Elements(XName.Get("Import", snippetNode.Name.NamespaceName)))