104 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\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
52attr.Name != "Condition")) as XElement;
dotnet-user-secrets (1)
src\aspnetcore\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.OpenApi.SourceGenerators (2)
XmlComments\XmlComment.InheritDoc.cs (2)
409AnalyzerDebug.Assert(sourceAttributes.Current.Name == targetAttributes.Current.Name);
Microsoft.Build.Tasks.Core (4)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
373XAttribute includeAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Include")); 387XAttribute namespaceAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Namespace")); 436switch (attribute.Name.LocalName) 452attribute.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)
484var attributeName = attribute.Name.LocalName;
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)
598Debug.Assert(sourceAttributes.Current.Name == targetAttributes.Current.Name);
Microsoft.DotNet.Build.Manifest (1)
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;
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTransform.cs (1)
116var processPathIndex = attributes.FindIndex(a => a.Name.LocalName == "processPath");
NuGet.Configuration (5)
Settings\SettingElement.cs (5)
109MutableAttributes.Add(existingAttribute.Name.LocalName, existingAttribute.Value); 247if (!AllowedAttributes.Contains(attribute.Name.LocalName)) 250string.Format(CultureInfo.CurrentCulture, Resources.AttributeNotAllowed, attribute.Name.LocalName, 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),
NuGet.PackageManagement (10)
Utility\XElementExtensions.cs (10)
65where AttributeEquals(e, target.Attribute(e.Name)) 123var sourceAttribute = source.Attribute(targetAttribute.Name); 215var leftNameMatches = CountMatches(left, target, (a, b) => a.Name == b.Name); 216var rightNameMatches = CountMatches(right, target, (a, b) => a.Name == b.Name); 235var sourceAttr = source.Attributes().ToDictionary(a => a.Name, a => a.Value); 241if (sourceAttr.TryGetValue(targetAttr.Name, out sourceValue) 370return source.Name == target.Name && source.Value == target.Value;
NuGet.Packaging (11)
PackageCreation\Extensions\XElementExtensions.cs (9)
41where AttributeEquals(e, target.Attribute(e.Name)) 103var leftNameMatches = CountMatches(left, target, (a, b) => a.Name == b.Name); 104var rightNameMatches = CountMatches(right, target, (a, b) => a.Name == b.Name); 129var sourceAttr = source.Attributes().ToDictionary(a => a.Name, a => a.Value); 135if (sourceAttr.TryGetValue(targetAttr.Name, out sourceValue) 157return source.Name == target.Name && source.Value == target.Value;
PackagesConfigWriter.cs (2)
451var newAttributeNames = newEntryNode.Attributes().Select(a => a.Name); 452var existingAttributeNames = existingNode.Attributes().Select(a => a.Name);
sdk-tasks (4)
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (4)
102if (matchAttrs.Contains(attr.Name.LocalName) || updateAttrs.Contains(attr.Name.LocalName)) 104var v0 = item0.Attribute(attr.Name)?.Value; 106Log.LogMessage(MessageImportance.Low, $"{elementName} {string.Join(", ", matchAttrs.Select(a => $"{a}={item2.Attribute(a)?.Value}"))}: Metadata '{attr.Name}' differs: stage0='{v0}', stage2='{attr.Value}'");
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;