86 references to Name
dotnet-svcutil-lib (3)
Shared\MSBuildProj.cs (3)
469var itemAttribue = reference.Attributes().FirstOrDefault(item => item.Name == itemName); 491var itemAttribute = itemName.Attributes().FirstOrDefault(item => item.Name == "Include"); 505var itemAttribute = itemName.Attributes().FirstOrDefault(item => item.Name == "Include");
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
52attr.Name != "Condition")) as XElement;
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
52attr.Name != "Condition")) as XElement;
Microsoft.AspNetCore.DataProtection (1)
XmlExtensions.cs (1)
24newElement.SetAttributeValue(attr.Name, attr.Value);
Microsoft.AspNetCore.DataProtection.Tests (6)
XmlAssert.cs (6)
87.OrderBy(attr => attr.Name.ToString()) 92.OrderBy(attr => attr.Name.ToString()) 100return expected.Name == actual.Name 108return attribute.Name != (XName)"xmlns" 109&& attribute.Name.Namespace != XNamespace.Xmlns;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
XmlAssert.cs (1)
72element.Attributes().OrderBy(a => a.Name.ToString()),
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
src\Mvc\Mvc.Formatters.Xml\test\XmlAssert.cs (1)
72element.Attributes().OrderBy(a => a.Name.ToString()),
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
348XAttribute includeAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Include")); 362XAttribute namespaceAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Namespace")); 411switch (attribute.Name.LocalName) 427attribute.Name.LocalName);
Microsoft.CodeAnalysis (2)
InternalUtilities\XmlUtilities.cs (2)
52Debug.Assert(sourceAttributes.Current.Name == targetAttributes.Current.Name);
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
259return string.IsNullOrEmpty(attribute.Name.NamespaceName) && DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name);
Microsoft.CodeAnalysis.Features (1)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
467var attributeName = attribute.Name.LocalName;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
144var delimiterAttribute = code.Attributes().FirstOrDefault(a => a.Name.LocalName.Equals("Delimiter", StringComparison.OrdinalIgnoreCase));
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertXml.cs (1)
266return new Tuple<XName, string>(attribute.Name, attribute.Value);
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
437Return String.IsNullOrEmpty(attribute.Name.NamespaceName) AndAlso 438DocumentationCommentXmlNames.AttributeEquals(attribute.Name.LocalName, name)
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\ISymbolExtensions.cs (2)
599Debug.Assert(sourceAttributes.Current.Name == targetAttributes.Current.Name);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (2)
52Debug.Assert(sourceAttributes.Current.Name == targetAttributes.Current.Name);
Microsoft.DotNet.VersionTools (1)
BuildManifest\Model\XElementParsingExtensions.cs (1)
26return element.Attributes().ToDictionary(a => a.Name.LocalName, a => a.Value);
Microsoft.DotNet.XliffTasks (3)
Model\XamlRuleDocument.cs (3)
110if (localizableProperties.Contains(attribute.Name.LocalName)) 187idBuilder.Append($"|{attribute.Name.LocalName}"); 218private static string XmlName(XAttribute attribute) => attribute.Name.LocalName;
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.ComponentModel.TypeConverter (2)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
166if (a != null && _value.element == a.Parent && _value.name == a.Name) 190_changeState = a != null && _value.element == a.Parent && _value.name == a.Name ? a : null;
System.Private.Xml.Linq (46)
System\Xml\Linq\XElement.cs (6)
515if (a.Name.NamespaceName.Length != 0 && 517GetNamespaceOfPrefixInScope(a.Name.LocalName, e) == null)) 519return a.Name.LocalName; 1901if (Attribute(a.Name) != null) throw new InvalidOperationException(SR.InvalidOperation_DuplicateAttribute); 1908if (Attribute(a.Name) != null) throw new InvalidOperationException(SR.InvalidOperation_DuplicateAttribute); 1989if (a.IsNamespaceDeclaration && a.Name.LocalName == prefix) return a.Value;
System\Xml\Linq\XLinq.cs (12)
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)); 381ns = a.Name.Namespace; 382string localName = a.Name.LocalName; 400ns = a.Name.Namespace; 401string localName = a.Name.LocalName; 550ns = a.Name.Namespace; 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\XNodeReader.cs (13)
212return a.Name.LocalName; 259string namespaceName = a.Name.NamespaceName; 260if (namespaceName.Length == 0 && a.Name.LocalName == "xmlns") 332string? prefix = a.GetPrefixOfNamespace(a.Name.Namespace); 481if (a.Name.LocalName == localName && a.Name.NamespaceName == namespaceName) 536if (a.Name.LocalName == localName && a.Name.NamespaceName == namespaceName) 623if (a.Name.LocalName == localName && 624a.Name.NamespaceName == namespaceName) 670if (a.Name.LocalName == localName && 671a.Name.NamespaceName == namespaceName) 1324if (candidateAttribute.Name.LocalName == "xml")
System\Xml\Schema\XNodeValidator.cs (5)
183string localName = a.Name.LocalName; 210string localName = a.Name.LocalName; 219XName name = a.Name; 251validator!.ValidateAttribute(a.Name.LocalName, a.Name.NamespaceName, a.Value, si);
System\Xml\XPath\XNodeNavigator.cs (10)
142if (_parent != null && a.Name.NamespaceName.Length == 0) 146return a.Name.LocalName; 188return a.Name.NamespaceName; 249string? prefix = a.GetPrefixOfNamespace(a.Name.Namespace); 330if (attribute.Name.LocalName == localName && 331attribute.Name.NamespaceName == namespaceName && 429while (a != null && a.Name.LocalName == "xml") 472if (a.Name.LocalName == localName) 608(a.Name.LocalName == "xml" || 850XName name = a.Name;