1 write to Name
NuGet.Packaging (1)
PackageCreation\Authoring\Manifest.cs (1)
138e.Name = XName.Get(e.Name.LocalName, schemaNamespace);
288 references to Name
aspire (23)
Commands\Sdk\IntegrationAssemblyNameResolver.cs (1)
28.FirstOrDefault(element => element.Name.LocalName == "AssemblyName" && !string.IsNullOrWhiteSpace(element.Value))?
Packaging\PackageChannel.cs (2)
459.FirstOrDefault(element => element.Name.LocalName == "tags")?.Value; 764.Where(element => element.Name.LocalName == "dependency")
Projects\DotNetAppHostProject.cs (8)
373foreach (var import in root.Descendants().Where(e => e.Name.LocalName.Equals("Import", StringComparison.Ordinal))) 759foreach (var import in root.Descendants().Where(e => e.Name.LocalName.Equals("Import", StringComparison.Ordinal))) 996foreach (var import in root.Descendants().Where(e => e.Name.LocalName.Equals("Import", StringComparison.Ordinal))) 1252if (!root.Name.LocalName.Equals("Project", StringComparison.Ordinal)) 1273.Any(e => e.Name.LocalName.Equals("Sdk", StringComparison.Ordinal) 1288.Any(e => e.Name.LocalName.Equals("Import", StringComparison.Ordinal) 1295if (root.Descendants().Any(e => e.Name.LocalName.Equals("PackageReference", StringComparison.OrdinalIgnoreCase) 1313.Any(e => e.Name.LocalName.Equals(IsAspireHostProperty, StringComparison.OrdinalIgnoreCase)
Projects\FallbackProjectParser.cs (3)
132if (root?.Name.LocalName != "Project") 148(e.Name.LocalName.Equals("Sdk", StringComparison.OrdinalIgnoreCase) 150|| (e.Name.LocalName.Equals("Import", StringComparison.OrdinalIgnoreCase)
Projects\JavaAppHostToolchainResolver.cs (2)
605.FirstOrDefault(static element => element.Name.LocalName == "modules")? 607.Where(static element => element.Name.LocalName == "module")
Projects\PrebuiltAppHostServer.cs (1)
537foreach (var element in document.Descendants().Where(static e => e.Name.LocalName == "ProjectReference"))
Projects\ProjectUpdater.cs (6)
546(element == document.Root && element.Name.LocalName == "Project" 549&& ((element.Name.LocalName == "Import" && ContainsAspireAppHostSdk(element.Attribute("Sdk")?.Value ?? string.Empty)) 550|| (element.Name.LocalName == "Sdk" && string.Equals(element.Attribute("Name")?.Value, AspireAppHostSdkName, StringComparison.OrdinalIgnoreCase))))); 563if (element.Name.LocalName == "Project" && element.Attribute("Sdk") is { } sdk && ContainsAspireAppHostSdk(sdk.Value)) 1421var references = document.Descendants().Where(element => element.Name.LocalName == "PackageReference" 1428var versionElement = reference.Elements().FirstOrDefault(element => element.Name.LocalName == "Version");
Aspire.Cli.EndToEnd.Tests (6)
CentralPackageManagementTests.cs (1)
323.Where(element => element.Name.LocalName == propertyName)
EntityFrameworkCoreDeploymentTests.cs (3)
256.SingleOrDefault(element => element.Name.LocalName is "TargetFramework" or "TargetFrameworks"); 264.SingleOrDefault(element => element.Name.LocalName == "RuntimeIdentifiers"); 267propertyGroup.Add(new XElement(propertyGroup.Name.Namespace + "RuntimeIdentifiers", targetRuntime));
Helpers\CliE2ETestHelpers.cs (2)
959var ns = doc.Root?.Name.Namespace ?? XNamespace.None; 986var ns = doc.Root?.Name.Namespace ?? XNamespace.None;
Aspire.Cli.Tests (1)
AssemblyMetadataChannelTests.cs (1)
48e.Name.LocalName == "AspireCliChannel"
Aspire.Hosting.Azure.Provisioning.Generators (3)
AspireProvisioningProxyGenerator.cs (3)
2222element.Name, 2247element.Name.LocalName == "param" && 2254element.Name.LocalName == "paramref" &&
Aspire.Hosting.Java (10)
JavaHostingExtensions.cs (1)
2060.FirstOrDefault(element => element.Name.LocalName == "artifactId")?
JavaVersionDetector.cs (9)
158foreach (var element in candidateElements.Where(e => string.Equals(e.Name.LocalName, name, StringComparison.Ordinal))) 182.Where(element => string.Equals(element.Name.LocalName, "profiles", StringComparison.Ordinal)) 191.FirstOrDefault(element => string.Equals(element.Name.LocalName, "id", StringComparison.Ordinal)) 279string.Equals(e.Name.LocalName, "activation", StringComparison.Ordinal)); 282string.Equals(e.Name.LocalName, "activeByDefault", StringComparison.Ordinal) 290string.Equals(element.Name.LocalName, "profile", StringComparison.Ordinal); 317if (!string.Equals(configuration?.Name.LocalName, "configuration", StringComparison.Ordinal)) 324if (!string.Equals(ancestor.Name.LocalName, "plugin", StringComparison.Ordinal)) 330string.Equals(e.Name.LocalName, "artifactId", StringComparison.Ordinal)
Aspire.Hosting.Maui.Tests (2)
MauiEnvironmentHelperTests.cs (2)
29Assert.Equal("Project", doc.Root.Name.LocalName); 122Assert.Equal("Project", doc.Root.Name.LocalName);
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
3688switch (element.Name.LocalName)
Aspire.Hosting.Tests (1)
MSBuildTests.cs (1)
280.FirstOrDefault(element => element.Name.LocalName == "version")?
Aspire.Tray.Tests (2)
MacTrayStartupSettingsTests.cs (2)
19Assert.Equal("plist", xml.Root!.Name.LocalName); 22Assert.Equal(["key", "string", "key", "array", "key", "true"], entries.Select(entry => entry.Name.LocalName));
ConfigurationSchemaGenerator (3)
ConfigSchemaEmitter.cs (3)
541if (element.Name == "para" || element.Name == "p") 547if (element.Name == "br")
dotnet-svcutil-lib (3)
Shared\MSBuildProj.cs (3)
174if (projDefinition.Root != null && projDefinition.Root.Name != null) 176msbuildNS = projDefinition.Root.Name.Namespace; 476itemNameElement = reference.Elements().FirstOrDefault(item => item.Name == itemName);
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
50&& el.Name == "PropertyGroup"
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
50&& el.Name == "PropertyGroup"
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
102Debug.Assert(rulesetNode.Name == RuleSetNodeName); 131Debug.Assert(rulesetNode.Name == RuleSetNodeName); 136if (childNode.Name != RulesNodeName) 146ruleNode.Name == RuleNodeName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
GenerateTemplateManifest (7)
ComponentManifest.cs (1)
115var ns = document.Root!.Name.Namespace;
Program.cs (1)
208if (project.Project.Descendants().Any(e => e.Name.LocalName is "PackageReference" or "PackageDownload" or "ProjectReference"))
TemplateRestorePlan.cs (5)
241if (project.Elements().Any(element => element.Name.LocalName is not ("PropertyGroup" or "ItemGroup"))) 248project.Elements("PropertyGroup").Elements().Where(p => compilationOnly.Contains(p.Name.LocalName, StringComparer.Ordinal)).Remove(); 251group.Elements().Where(item => item.Name.LocalName == "Using").Remove(); 253foreach (var group in project.Elements().Where(g => g.Name.LocalName is "PropertyGroup" or "ItemGroup").ToArray()) 268groupName == "PropertyGroup" && groups.SelectMany(g => g.Elements()).GroupBy(e => e.Name).Any(g => g.Count() > 1))
ilc (12)
RdXmlRootProvider.cs (12)
35if (libraryOrApplication.Name.LocalName != "Library" && libraryOrApplication.Name.LocalName != "Application") 36throw new NotSupportedException($"{libraryOrApplication.Name.LocalName} is not a supported top level Runtime Directive. Supported top level Runtime Directives are \"Library\" and \"Application\"."); 39throw new NotSupportedException($"The {libraryOrApplication.Name.LocalName} Runtime Directive does not support any attributes"); 43switch (element.Name.LocalName) 50throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 79switch (element.Name.LocalName) 85throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 128switch (element.Name.LocalName) 134throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 149switch (element.Name.LocalName) 160throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive.");
Infrastructure.Tests (2)
NuGetConfigTests.cs (2)
42Assert.Equal("clear", clear.Name.LocalName); 48Assert.Equal("add", source.Name.LocalName);
Microsoft.Arcade.Common (1)
NupkgInfoFactory.cs (1)
60return el.Descendants().First(c => c.Name.LocalName.ToString() == name);
Microsoft.AspNetCore.DataProtection (6)
KeyManagement\XmlKeyManager.cs (5)
193if (element.Name == KeyElementName) 208else if (element.Name == RevocationElementName) 234_logger.UnknownElementWithNameFoundInKeyringSkipping(element.Name); 290Debug.Assert(keyElement.Name == KeyElementName); 346Debug.Assert(revocationElement.Name == RevocationElementName);
XmlExtensions.cs (1)
21var newElement = new XElement(element.Name);
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
XmlComments\XmlComment.InheritDoc.cs (3)
356var currentName = current.Name.ToString(); 371=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\GenerateBindingRedirects.cs (6)
80.FirstOrDefault(e => e.Name.LocalName == "runtime"); 204.Where(e => e.Name.LocalName == "assemblyBinding"); 211.Where(e => e.Name.LocalName == "dependentAssembly"); 218.FirstOrDefault(e => e.Name.LocalName == "assemblyIdentity"); 231.FirstOrDefault(e => e.Name.LocalName == "bindingRedirect"); 359if (document.Root == null || document.Root.Name != "configuration")
ResourceHandling\MSBuildResXReader.cs (1)
36switch (elem.Name.LocalName)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (6)
417if (child.Name.LocalName.Equals("Code")) 428else if (child.Name.LocalName.Equals("Reference")) 442else if (child.Name.LocalName.Equals("Using")) 459child.Name.LocalName, 460document.Root.Name.LocalName); 469document.Root.Name.LocalName);
Microsoft.CodeAnalysis (6)
RuleSet\RuleSetProcessor.cs (6)
83Debug.Assert(nodeList[0].Name == RuleSetNodeName); 108if (childNode.Name == RulesNodeName) 130else if (childNode.Name == IncludeNodeName) 134else if (childNode.Name == IncludeAllNodeName) 159if (ruleNode.Name == RuleNodeName) 258throw new InvalidRuleSetException(string.Format(CodeAnalysisResources.RuleSetMissingAttribute, node.Name, attributeName));
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
102Debug.Assert(rulesetNode.Name == RuleSetNodeName); 131Debug.Assert(rulesetNode.Name == RuleSetNodeName); 136if (childNode.Name != RulesNodeName) 146ruleNode.Name == RuleNodeName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
102Debug.Assert(rulesetNode.Name == RuleSetNodeName); 131Debug.Assert(rulesetNode.Name == RuleSetNodeName); 136if (childNode.Name != RulesNodeName) 146ruleNode.Name == RuleNodeName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.CodeAnalysis.CSharp (3)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
254return string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name); 526XmlNameAttributeSyntax attrSyntax = ParseNameAttribute(attribute.ToString(), attribute.Parent.Name.LocalName);
Microsoft.CodeAnalysis.Features (1)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
342var name = element.Name.LocalName;
Microsoft.CodeAnalysis.NetAnalyzers (4)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
101Debug.Assert(rulesetNode.Name == RuleSetNodeName); 130Debug.Assert(rulesetNode.Name == RuleSetNodeName); 135if (childNode.Name != RulesNodeName) 145ruleNode.Name == RuleNodeName)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
102Debug.Assert(rulesetNode.Name == RuleSetNodeName); 131Debug.Assert(rulesetNode.Name == RuleSetNodeName); 136if (childNode.Name != RulesNodeName) 146ruleNode.Name == RuleNodeName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.CodeAnalysis.VisualBasic (3)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
305Dim elementName As XName = element.Name 432Return String.IsNullOrEmpty(element.Name.NamespaceName) AndAlso 433DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name, True)
Microsoft.CodeAnalysis.Workspaces (4)
Shared\Extensions\ISymbolExtensions.cs (3)
548var currentName = current.Name.ToString(); 634=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
574var elements = doc.Descendants().Where(e => e.Name.LocalName == elementName);
Microsoft.DotNet.Build.Tasks.Workloads (10)
Msi\WixXmlExtensions.cs (10)
51if (_registryValueParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 66throw new InvalidOperationException(string.Format(Strings.InvalidChildElement, "RegistryValue", element.Name.LocalName)); 85if (_registryKeyParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 99throw new InvalidOperationException(string.Format(Strings.InvalidChildElement, "RegistryKey", element.Name.LocalName)); 113if (_componentGroupRefParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 120throw new InvalidOperationException(string.Format(Strings.InvalidChildElement, "ComponentGroupRef", element.Name.LocalName)); 133if (_directoryParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 144throw new InvalidOperationException(string.Format(Strings.InvalidChildElement, "Directory", element.Name.LocalName)); 149if (_directoryParentElements.Any(e => string.Equals(e, element.Name.LocalName))) 156throw new InvalidOperationException(string.Format(Strings.InvalidChildElement, "Directory", element.Name.LocalName));
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
267x.Name.LocalName,
Microsoft.DotNet.XliffTasks (19)
Model\VsctDocument.cs (4)
20foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 33XName name = child.Name; 64foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 79foreach (XElement imageTag in Document.Descendants(Document.Root.Name.Namespace + "Bitmap"))
Model\XamlRuleDocument.cs (11)
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(); 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) 213var localName = element.Name.LocalName;
Model\XlfDocument.cs (2)
225XNamespace ns = _document.Root.Name.Namespace; 278XNamespace ns = _document.Root.Name.Namespace;
Tasks\TransformTemplates.cs (2)
84foreach (XElement projectNode in templateXml.Descendants().Where(d => d.Name.LocalName == "Project")) 91foreach (XElement templateItem in templateXml.Descendants().Where(d => d.Name.LocalName == "ProjectItem"))
Microsoft.Extensions.FileProviders.Embedded (5)
Manifest\ManifestParser.cs (5)
89if (string.Equals(element.Name.LocalName, "File", StringComparison.Ordinal)) 97if (string.Equals(element.Name.LocalName, "Directory", StringComparison.Ordinal)) 112$"Got '{element.Name.LocalName}' instead."); 131throw new InvalidOperationException($"Invalid manifest format. '{element.Name}' must contain a 'Name' attribute."); 148$"Invalid manifest format. '{element.Name.LocalName}' must contain " +
Microsoft.NET.Build.Tasks (5)
StoreArtifactParser.cs (1)
20var rootName = doc.Root.Name;
ValidateExecutableReferences.cs (1)
49projectAdditionalProperties[propertyElement.Name.LocalName] = propertyElement.Value;
WriteAppConfigWithSupportedRuntime.cs (3)
63.FirstOrDefault(e => e.Name.LocalName == "startup"); 89&& startupNode.Nodes().OfType<XElement>().Any(e => e.Name.LocalName == "supportedRuntime"); 166if (document.Root == null || document.Root.Name != "configuration")
Microsoft.NET.ProjectData (2)
SdkKnownFrameworkReferenceResolver.cs (2)
87 if (element.Name.LocalName == "KnownFrameworkReference") 103 if (TryGetKnownAnalyzerPackVersionMetadata(element.Name.LocalName, out string? versionMetadataName))
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTransform.cs (1)
16if (webConfig?.Root == null || webConfig.Root.Name.LocalName != "configuration")
Microsoft.TestPlatform.Build (5)
Tasks\TestTaskUtils.cs (5)
299if (!loggerRunSettings.Name.LocalName.Equals("LoggerRunSettings", StringComparison.OrdinalIgnoreCase)) 306if (!loggers.Name.LocalName.Equals("Loggers", StringComparison.OrdinalIgnoreCase)) 313if (!logger.Name.LocalName.Equals("Logger", StringComparison.OrdinalIgnoreCase)) 343if (!configuration.Name.LocalName.Equals("Configuration", StringComparison.OrdinalIgnoreCase)) 350if (element.Name.LocalName.Equals("Verbosity", StringComparison.OrdinalIgnoreCase))
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\AppxManifestFile.cs (1)
22var ns = doc.Root!.Name.Namespace;
Hosting\DefaultTestHostManager.cs (1)
589var ns = doc.Root!.Name.Namespace;
NuGet.Configuration (13)
Settings\Items\CredentialsItem.cs (1)
144ElementName = XmlConvert.DecodeName(element.Name.LocalName);
Settings\Items\UnknownItem.cs (1)
26ElementName = element.Name.LocalName;
Settings\NuGetConfiguration.cs (1)
65if (!string.Equals(element.Name.LocalName, ElementName, StringComparison.OrdinalIgnoreCase))
Settings\SettingElement.cs (5)
241string.Format(CultureInfo.CurrentCulture, Resources.NoAttributesAllowed, element.Name.LocalName, element.Attributes().Count()), 250string.Format(CultureInfo.CurrentCulture, Resources.AttributeNotAllowed, attribute.Name.LocalName, element.Name.LocalName), 264string.Format(CultureInfo.CurrentCulture, Resources.MissingRequiredAttribute, requireAttribute, element.Name.LocalName), 278string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName), 292string.Format(CultureInfo.CurrentCulture, Resources.AttributeValueNotAllowed, attribute.Name.LocalName, attribute.Value.Trim(), element.Name.LocalName),
Settings\SettingFactory.cs (4)
29Enum.TryParse(element.Name.LocalName, ignoreCase: true, result: out elementType); 34Enum.TryParse(element.Parent?.Name.LocalName, ignoreCase: true, result: out parentType); 40return new ParsedSettingSection(element.Name.LocalName, element, origin); 183if (xElement.Name.LocalName.Equals(ConfigurationConstants.PackageSourceMapping, StringComparison.OrdinalIgnoreCase) && duplicatedDescendants != null)
Settings\SettingItem.cs (1)
33throw new NuGetConfigurationException(string.Format(CultureInfo.CurrentCulture, Resources.ShowError_CannotHaveChildren, element.Name.LocalName, origin.ConfigFilePath));
NuGet.PackageManagement (11)
FileModifiers\XmlTransformer.cs (3)
76var transformDocument = MSBuildNuGetProjectSystemUtility.GetOrCreateDocument(xmlFragment.Name, targetPath, projectSystem); 121var document = XmlUtility.GetOrCreateDocument(xmlFragment.Name, 135new XElement(xmlFragment.Name),
Utility\XElementExtensions.cs (8)
48return container.Elements().Where(e => e.Name.LocalName == localName); 53return source.Elements().Where(e => e.Name.LocalName == localName); 163&& nodeActions.TryGetValue(targetChild.Name, out nodeAction)) 173Debug.Assert(newlyAddedElement.Name == targetChild.Name); 190var sourceElements = source.Elements(targetChild.Name).ToList(); 206Debug.Assert(left.Name == right.Name);
NuGet.Packaging (16)
Core\NuspecCoreReaderBase.cs (2)
141.Select(e => new KeyValuePair<string, string>(e.Name.LocalName, e.Value)); 188_metadataNode = _xml.Root!.Elements().FirstOrDefault(e => StringComparer.Ordinal.Equals(e.Name.LocalName, Metadata));
Core\NuspecUtility.cs (4)
64.Where(x => x.Name.LocalName == PackageTypes) 66.Where(x => x.Name.LocalName == PackageType); 157.Where(x => x.Name.LocalName == Group); 166frameworkRefGroup.Elements().Where(x => x.Name.LocalName == FrameworkReference);
PackageCreation\Authoring\Manifest.cs (2)
138e.Name = XName.Get(e.Name.LocalName, schemaNamespace); 167var rootNameSpace = document.Root!.Name.Namespace;
PackageCreation\Authoring\ManifestReader.cs (3)
77allElements.Add(element.Name.LocalName); 83switch (element.Name.LocalName) 172throw new InvalidDataException(string.Format(CultureInfo.CurrentCulture, NuGetResources.Manifest_PropertyValueReadFailure, value, element.Name.LocalName), ex);
PackageCreation\Extensions\XElementExtensions.cs (2)
30return container.Elements().Where(e => e.Name.LocalName == localName); 86var sourceElements = source.Elements(targetChild.Name).ToList();
Rules\DependenciesGroupsForEachTFMRule.cs (1)
194XNamespace name = nuspec.Root!.Name.Namespace;
Rules\InvalidUndottedFrameworkRule.cs (1)
53var metadataNode = xml.Root!.Elements().FirstOrDefault(e => StringComparer.Ordinal.Equals(e.Name.LocalName, Metadata));
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
38XNamespace name = nuspec.Root!.Name.Namespace;
NuGet.Protocol (6)
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (5)
128where e.Name.LocalName == "EntityContainer" 133let entitySet = e.Elements().FirstOrDefault(el => el.Name.LocalName == "EntitySet") 154where e.Name.LocalName == "FunctionImport" 178where e.Name.LocalName == "EntityType" 188where e.Name.LocalName == "Property"
LegacyFeed\V2FeedParser.cs (1)
314if (doc.Root!.Name == _xnameEntry)
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
38XName name = ((XElement)item).Name;
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (4)
102Debug.Assert(rulesetNode.Name == RuleSetNodeName); 131Debug.Assert(rulesetNode.Name == RuleSetNodeName); 136if (childNode.Name != RulesNodeName) 146ruleNode.Name == RuleNodeName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
422.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
sdk-tasks (10)
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (10)
48var ns = stage2Doc.Root.Name.Namespace; 70.Where(e => e.Name.LocalName == elementName && e.Attribute("TargetFramework")?.Value != latestTargetFramework) 75.Where(e => e.Name.LocalName == elementName && matchAttrs.All(attr => (e.Attribute(attr)?.Value ?? "") == (item2.Attribute(attr)?.Value ?? ""))) 161.ToDictionary(e => e.Name.LocalName, e => e.Value.Trim()); 169if (stage0Versions.TryGetValue(property.Name.LocalName, out var v0) && 173Log.LogMessage(MessageImportance.Low, $"{stage2Path}: overriding {property.Name.LocalName} '{property.Value}' with stage 0 value '{v0}'."); 190return doc.Root.Elements(doc.Root.Name.Namespace + "PropertyGroup") 192.Where(e => e.Name.LocalName.StartsWith(Prefix, StringComparison.Ordinal) && 193e.Name.LocalName.Length > Prefix.Length && 194e.Name.LocalName.Substring(Prefix.Length).All(char.IsDigit))
System.ComponentModel.TypeConverter (10)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (10)
219if (e != null && (_value.name == e.Name || _value.name == null)) 226if (e != null && _value.element != e && _value.name != null && (_value.name == e.Name || _value.name == _changeState)) 243_changeState = e?.Name; 271if (e != null && _value.element == e.Parent && _value.name == e.Name && _value.element.Element(_value.name) == e) 288if (_value.element == e.Parent && _value.name == e.Name && _value.element.Element(_value.name) == e) 311_changeState = e != null && _value.element == e.Parent && _value.name == e.Name && _value.element.Element(_value.name) == e ? e : null; 339if (e != null && _value.element == e.Parent && (_value.name == e.Name || _value.name == null)) 346if (e != null && _value.element == (_changeState as XContainer) && (_value.name == e.Name || _value.name == null)) 354if (e != null && _value.element == e.Parent && _value.name != null && (_value.name == e.Name || _value.name == (_changeState as XName))) 375_changeState = e?.Name;
System.Private.Xml.Linq (22)
System\Xml\Linq\XLinq.cs (4)
373XNamespace ns = e.Name.Namespace; 374_writer.WriteStartElement(GetPrefixOfNamespace(ns, true), e.Name.LocalName, ns.NamespaceName); 392XNamespace ns = e.Name.Namespace; 393await _writer.WriteStartElementAsync(GetPrefixOfNamespace(ns, true), e.Name.LocalName, ns.NamespaceName).ConfigureAwait(false);
System\Xml\Linq\XNodeReader.cs (9)
207return e.Name.LocalName; 254return e.Name.NamespaceName; 322string? prefix = e.GetPrefixOfNamespace(e.Name.Namespace); 892if (e.Name.LocalName == localName && 893e.Name.NamespaceName == namespaceName) 912if (e.Name.LocalName == localName && e.Name.NamespaceName == namespaceName) 935if (e.Name.LocalName == localName && 936e.Name.NamespaceName == namespaceName)
System\Xml\Schema\XNodeValidator.cs (2)
304validator!.ValidateElement(e.Name.LocalName, e.Name.NamespaceName, si, xsiType, xsiNil, null, null);
System\Xml\XPath\XNodeNavigator.cs (7)
137return e.Name.LocalName; 179return e.Name.NamespaceName; 235string? prefix = e.GetPrefixOfNamespace(e.Name.Namespace); 349if (element.Name.LocalName == localName && 350element.Name.NamespaceName == namespaceName) 525if (element.Name.LocalName == localName && 526element.Name.NamespaceName == namespaceName)