132 references to LocalName
BuildBoss (2)
ProjectCheckerUtil.cs (1)
83if (element.Name.LocalName == propertyName)
ProjectUtil.cs (1)
164internal XElement FindSingleProperty(string localName) => GetAllPropertyGroupElements().SingleOrDefault(x => x.Name.LocalName == localName);
Microsoft.AspNetCore.DataProtection.Tests (22)
KeyManagement\KeyEscrowServiceProviderExtensionsTests.cs (3)
39output.Add(string.Format(CultureInfo.InvariantCulture, "{0:D}: {1}", keyId, element.Name.LocalName)); 64output.Add(string.Format(CultureInfo.InvariantCulture, "[sink1] {0:D}: {1}", keyId, element.Name.LocalName)); 71output.Add(string.Format(CultureInfo.InvariantCulture, "[sink2] {0:D}: {1}", keyId, element.Name.LocalName));
Repositories\EphemeralXmlRepositoryTests.cs (5)
62switch (element.Element.Name.LocalName) 71Assert.Fail("Unexpected element name: " + element.Element.Name.LocalName); 78var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName)); 82Assert.Equal(!delete1, elementSet.Contains(element1.Name.LocalName)); 83Assert.Equal(!delete2, elementSet.Contains(element2.Name.LocalName));
Repositories\FileSystemXmlRepositoryTests.cs (6)
136var orderedNames = allElements.Select(el => el.Name.LocalName).OrderBy(name => name); 167switch (element.Element.Name.LocalName) 176Assert.Fail("Unexpected element name: " + element.Element.Name.LocalName); 183var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName)); 187Assert.Equal(!delete1, elementSet.Contains(element1.Name.LocalName)); 188Assert.Equal(!delete2, elementSet.Contains(element2.Name.LocalName));
Repositories\RegistryXmlRepositoryTests.cs (6)
123var orderedNames = allElements.Select(el => el.Name.LocalName).OrderBy(name => name); 155switch (element.Element.Name.LocalName) 164Assert.Fail("Unexpected element name: " + element.Element.Name.LocalName); 171var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName)); 175Assert.Equal(!delete1, elementSet.Contains(element1.Name.LocalName)); 176Assert.Equal(!delete2, elementSet.Contains(element2.Name.LocalName));
XmlEncryption\XmlEncryptionExtensionsTests.cs (2)
179.Returns<XElement>(el => new XElement(el.Name.LocalName + "_decrypted", new XElement(XmlConstants.EncryptedSecretElementName, "nested"))); 265.Returns<XElement>(element => new EncryptedXmlInfo(new XElement(element.Name.LocalName + "_encrypted"), typeof(MyXmlDecryptor)));
Microsoft.Build.Tasks.Core (16)
AssemblyDependency\GenerateBindingRedirects.cs (5)
76.FirstOrDefault(e => e.Name.LocalName == "runtime"); 199.Where(e => e.Name.LocalName == "assemblyBinding"); 206.Where(e => e.Name.LocalName == "dependentAssembly"); 213.FirstOrDefault(e => e.Name.LocalName == "assemblyIdentity"); 226.FirstOrDefault(e => e.Name.LocalName == "bindingRedirect");
ResourceHandling\MSBuildResXReader.cs (1)
34switch (elem.Name.LocalName)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (10)
335if (child.Name.LocalName.Equals("Code")) 346else if (child.Name.LocalName.Equals("Reference")) 348XAttribute includeAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Include")); 360else if (child.Name.LocalName.Equals("Using")) 362XAttribute namespaceAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Namespace")); 377child.Name.LocalName, 378document.Root.Name.LocalName); 387document.Root.Name.LocalName); 411switch (attribute.Name.LocalName) 427attribute.Name.LocalName);
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
144.Count(e => e.Name.LocalName.Equals("assemblyBinding", StringComparison.OrdinalIgnoreCase))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
403.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); 259return string.IsNullOrEmpty(attribute.Name.NamespaceName) && DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name); 526XmlNameAttributeSyntax attrSyntax = ParseNameAttribute(attribute.ToString(), attribute.Parent.Name.LocalName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\MockSymbolTests.cs (1)
110switch (xel.Name.LocalName)
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
325var name = element.Name.LocalName; 467var attributeName = attribute.Name.LocalName;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Options\NamingStyleTestUtilities.cs (1)
37if (excludeNodes != null && excludeNodes.Contains(element.Name.LocalName))
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (6)
79if (codeSnippetsElement.Name.LocalName.Equals("CodeSnippets", StringComparison.OrdinalIgnoreCase)) 81return codeSnippetsElement.Elements().Where(e => e.Name.LocalName.Equals("CodeSnippet", StringComparison.OrdinalIgnoreCase)).ToImmutableArray(); 83else if (codeSnippetsElement.Name.LocalName.Equals("CodeSnippet", StringComparison.OrdinalIgnoreCase)) 93return element.Elements().Where(e => e.Name.LocalName.Equals(localName, StringComparison.OrdinalIgnoreCase)); 98return element?.Elements().FirstOrDefault(e => e.Name.LocalName.Equals(localName, StringComparison.OrdinalIgnoreCase)); 144var delimiterAttribute = code.Attributes().FirstOrDefault(a => a.Name.LocalName.Equals("Delimiter", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.VisualBasic (9)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (9)
316elementName.LocalName, 336elementName.LocalName, 348elementName.LocalName, 356elementName.LocalName, 365elementName.LocalName, 374elementName.LocalName, 415elementName.LocalName, 433DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name, True) 438DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name)
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\ISymbolExtensions.cs (1)
635=> string.IsNullOrEmpty(element.Name.NamespaceName) && DocumentationCommentXmlNames.ElementEquals(element.Name.LocalName, name);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
403.Where(e => e.Name.LocalName == "SymbolKind" && e.Value == "Method").ToList();
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\XmlDocumentationProviderTests.cs (1)
44Assert.Equal("member", xmlDocument.Root!.Name.LocalName);
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
253x.Name.LocalName,
Microsoft.DotNet.VersionTools (2)
Automation\NupkgInfoFactory.cs (1)
65return el.Descendants().First(c => c.Name.LocalName.ToString() == name);
BuildManifest\Model\XElementParsingExtensions.cs (1)
26return element.Attributes().ToDictionary(a => a.Name.LocalName, a => a.Value);
Microsoft.DotNet.XliffTasks (13)
Model\VsctDocument.cs (2)
35if (name.LocalName == "CanonicalName") 44id: $"{id}|{name.LocalName}",
Model\XamlRuleDocument.cs (9)
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) 110if (localizableProperties.Contains(attribute.Name.LocalName)) 187idBuilder.Append($"|{attribute.Name.LocalName}"); 213var localName = element.Name.LocalName; 218private static string XmlName(XAttribute attribute) => attribute.Name.LocalName;
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 (4)
Manifest\ManifestParser.cs (4)
89if (string.Equals(element.Name.LocalName, "File", StringComparison.Ordinal)) 97if (string.Equals(element.Name.LocalName, "Directory", StringComparison.Ordinal)) 112$"Got '{element.Name.LocalName}' instead."); 148$"Invalid manifest format. '{element.Name.LocalName}' must contain " +
Roslyn.Test.PdbUtilities (3)
Reader\PdbValidation.cs (3)
489e.Name == "local" && e.Attributes().Any(a => a.Name.LocalName == "name" && a.Value.StartsWith("$VB$ResumableLocal_")) 496where e.Attributes().Any(a => a.Name.LocalName == "format" && a.Value == format) 504element.Attributes().FirstOrDefault(a => a.Name.LocalName == "format")?.Remove();
System.Private.Xml.Linq (42)
System\Xml\Linq\XAttribute.cs (6)
91return name.LocalName == "xmlns"; 218w.WriteAttributeString(GetPrefixOfNamespace(name.Namespace), name.LocalName, name.NamespaceName, value); 710throw new ArgumentException(SR.Format(SR.Argument_NamespaceDeclarationPrefixed, name.LocalName)); 716if (name.LocalName != "xml") throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 726string localName = name.LocalName; 740else if (namespaceName.Length == 0 && name.LocalName == "xmlns")
System\Xml\Linq\XElement.cs (3)
517GetNamespaceOfPrefixInScope(a.Name.LocalName, e) == null)) 519return a.Name.LocalName; 1989if (a.IsNamespaceDeclaration && a.Name.LocalName == prefix) return a.Value;
System\Xml\Linq\XLinq.cs (9)
320_resolver.AddFirst(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 338_resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value)); 374_writer.WriteStartElement(GetPrefixOfNamespace(ns, true), e.Name.LocalName, ns.NamespaceName); 382string localName = a.Name.LocalName; 393await _writer.WriteStartElementAsync(GetPrefixOfNamespace(ns, true), e.Name.LocalName, ns.NamespaceName).ConfigureAwait(false); 401string localName = a.Name.LocalName; 547_writer.WriteStartElement(GetPrefixOfNamespace(ns, true), _element.Name.LocalName, ns.NamespaceName); 551string localName = a.Name.LocalName; 578_resolver.Add(a.Name.NamespaceName.Length == 0 ? string.Empty : a.Name.LocalName, XNamespace.Get(a.Value));
System\Xml\Linq\XNamespace.cs (1)
275return n.LocalName;
System\Xml\Linq\XNodeReader.cs (11)
207return e.Name.LocalName; 212return a.Name.LocalName; 260if (namespaceName.Length == 0 && a.Name.LocalName == "xmlns") 481if (a.Name.LocalName == localName && a.Name.NamespaceName == namespaceName) 536if (a.Name.LocalName == localName && a.Name.NamespaceName == namespaceName) 623if (a.Name.LocalName == localName && 670if (a.Name.LocalName == localName && 892if (e.Name.LocalName == localName && 912if (e.Name.LocalName == localName && e.Name.NamespaceName == namespaceName) 935if (e.Name.LocalName == localName && 1324if (candidateAttribute.Name.LocalName == "xml")
System\Xml\Schema\XNodeValidator.cs (4)
183string localName = a.Name.LocalName; 210string localName = a.Name.LocalName; 251validator!.ValidateAttribute(a.Name.LocalName, a.Name.NamespaceName, a.Value, si); 304validator!.ValidateElement(e.Name.LocalName, e.Name.NamespaceName, si, xsiType, xsiNil, null, null);
System\Xml\XPath\XNodeNavigator.cs (8)
137return e.Name.LocalName; 146return a.Name.LocalName; 330if (attribute.Name.LocalName == localName && 349if (element.Name.LocalName == localName && 429while (a != null && a.Name.LocalName == "xml") 472if (a.Name.LocalName == localName) 525if (element.Name.LocalName == localName && 608(a.Name.LocalName == "xml" ||