41 references to Attributes
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)
51&& el.Attributes().All(attr =>
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
51&& el.Attributes().All(attr =>
Microsoft.AspNetCore.DataProtection (1)
XmlExtensions.cs (1)
22foreach (var attr in element.Attributes())
Microsoft.AspNetCore.DataProtection.Tests (2)
XmlAssert.cs (2)
51&& AreEqual(expected.Attributes(), actual.Attributes())
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 (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
348XAttribute includeAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Include")); 362XAttribute namespaceAttribute = child.Attributes().FirstOrDefault(i => i.Name.LocalName.Equals("Namespace")); 409foreach (XAttribute attribute in codeElement.Attributes().Where(i => !i.IsNamespaceDeclaration))
Microsoft.CodeAnalysis (2)
InternalUtilities\XmlUtilities.cs (2)
48IEnumerator<XAttribute> sourceAttributes = sourceElement.Attributes().GetEnumerator(); 49IEnumerator<XAttribute> targetAttributes = targetElement.Attributes().GetEnumerator();
Microsoft.CodeAnalysis.CSharp (1)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
216foreach (XAttribute attribute in element.Attributes())
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
335foreach (var attribute in element.Attributes()) 355foreach (var attribute in element.Attributes())
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Options\NamingStyleTestUtilities.cs (1)
53foreach (var attribute in element.Attributes())
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 (2)
Assert\AssertXml.cs (2)
253IEnumerable<Tuple<XName, string>> attributes1 = element1.Attributes().Select(MakeAttributeTuple); 254IEnumerable<Tuple<XName, string>> attributes2 = element2.Attributes().Select(MakeAttributeTuple);
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
384For Each attribute In element.Attributes
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\ISymbolExtensions.cs (2)
595var sourceAttributes = sourceElement.Attributes().GetEnumerator(); 596var targetAttributes = targetElement.Attributes().GetEnumerator();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\XmlUtilities.cs (2)
48IEnumerator<XAttribute> sourceAttributes = sourceElement.Attributes().GetEnumerator(); 49IEnumerator<XAttribute> targetAttributes = targetElement.Attributes().GetEnumerator();
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\AnnotatedUsage.cs (1)
21Usage.ToXml().Attributes(),
src\UsageReport\Usage.cs (1)
32PackageIdentity.ToXElement().Attributes(),
Microsoft.DotNet.VersionTools (1)
BuildManifest\Model\XElementParsingExtensions.cs (1)
26return element.Attributes().ToDictionary(a => a.Name.LocalName, a => a.Value);
Microsoft.DotNet.XliffTasks (1)
Model\XamlRuleDocument.cs (1)
71foreach (XAttribute? attribute in element.Attributes())
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 (7)
System\Xml\Linq\XContainer.cs (2)
341/// <seealso cref="XElement.Attributes()"/> 346/// <seealso cref="XElement.Attributes()"/>
System\Xml\Linq\XElement.cs (1)
407/// <seealso cref="XElement.Attributes()"/>
System\Xml\XPath\XNodeNavigator.cs (4)
87foreach (XAttribute attribute in element.Attributes()) 328foreach (XAttribute attribute in e.Attributes()) 387foreach (XAttribute attribute in e.Attributes()) 789foreach (XAttribute attribute in e.Attributes())