1 write to Name
NuGet.Packaging (1)
PackageCreation\Authoring\Manifest.cs (1)
138e.Name = XName.Get(e.Name.LocalName, schemaNamespace);
204 references to Name
aspire (1)
Projects\FallbackProjectParser.cs (1)
77if (root?.Name.LocalName != "Project")
Aspire.Cli.EndToEnd.Tests (1)
CentralPackageManagementTests.cs (1)
210if (element.Name.LocalName == "PackageReference" &&
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();
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.");
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)
360if (child.Name.LocalName.Equals("Code")) 371else if (child.Name.LocalName.Equals("Reference")) 385else if (child.Name.LocalName.Equals("Using")) 402child.Name.LocalName, 403document.Root.Name.LocalName); 412document.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.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)
550var elements = doc.Descendants().Where(e => e.Name.LocalName == elementName);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
253x.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)
224XNamespace ns = _document.Root.Name.Namespace; 277XNamespace ns = _document.Root.Name.Namespace;
Tasks\TransformTemplates.cs (2)
77foreach (XElement projectNode in templateXml.Descendants().Where(d => d.Name.LocalName == "Project")) 84foreach (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)
58.FirstOrDefault(e => e.Name.LocalName == "startup"); 84&& startupNode.Nodes().OfType<XElement>().Any(e => e.Name.LocalName == "supportedRuntime"); 160if (document.Root == null || document.Root.Name != "configuration")
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTransform.cs (1)
16if (webConfig?.Root == null || webConfig.Root.Name.LocalName != "configuration")
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\AppxManifestFile.cs (1)
22var ns = doc.Root!.Name.Namespace;
Hosting\DefaultTestHostManager.cs (1)
596var 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); 176if (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)
124where e.Name.LocalName == "EntityContainer" 129let entitySet = e.Elements().FirstOrDefault(el => el.Name.LocalName == "EntitySet") 150where e.Name.LocalName == "FunctionImport" 174where e.Name.LocalName == "EntityType" 184where e.Name.LocalName == "Property"
LegacyFeed\V2FeedParser.cs (1)
316if (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 (3)
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (3)
33var ns = stage2Doc.Root.Name.Namespace; 55.Where(e => e.Name.LocalName == elementName && e.Attribute("TargetFramework")?.Value != latestTargetFramework) 60.Where(e => e.Name.LocalName == elementName && matchAttrs.All(attr => (e.Attribute(attr)?.Value ?? "") == (item2.Attribute(attr)?.Value ?? "")))
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)