60 references to NamedArguments
ILLink.RoslynAnalyzer (1)
RequiresAnalyzerBase.cs (1)
264 var url = requiresAttribute?.NamedArguments.FirstOrDefault (na => na.Key == "Url").Value.Value?.ToString ();
Microsoft.AspNetCore.App.Analyzers (3)
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
122foreach (var arg in attributeUsage.NamedArguments)
RouteEmbeddedLanguage\Infrastructure\RoutePatternParametersDetector.cs (1)
51foreach (var namedArgument in attributeData.NamedArguments)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
206foreach (var namedArgument in attribute.NamedArguments)
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentFacts.cs (1)
64foreach (var kvp in attribute.NamedArguments)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentFacts.cs (1)
64foreach (var kvp in attribute.NamedArguments)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
206foreach (var namedArgument in attribute.NamedArguments)
Microsoft.AspNetCore.Mvc.Analyzers (4)
TopLevelParameterNameAnalyzer.cs (4)
159for (var i = 0; i < attribute.NamedArguments.Length; i++) 161var namedArgument = attribute.NamedArguments[i]; 182for (var i = 0; i < attribute.NamedArguments.Length; i++) 184var namedArgument = attribute.NamedArguments[i];
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
SymbolApiResponseMetadataProvider.cs (2)
189for (var i = 0; i < attribute.NamedArguments.Length; i++) 191var namedArgument = attribute.NamedArguments[i];
Microsoft.CodeAnalysis (8)
Symbols\Attributes\CommonAttributeDataComparer.cs (3)
35attr1.NamedArguments.SequenceEqual(attr2.NamedArguments); 47hash = Hash.Combine(GetHashCodeForNamedArguments(attr.NamedArguments), hash);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (5)
126foreach (var namedArg in arguments.Attribute.NamedArguments) 182foreach (var namedArg in arguments.Attribute.NamedArguments) 217foreach (var namedArg in arguments.Attribute.NamedArguments) 306foreach (var namedArg in arguments.Attribute.NamedArguments) 374foreach (var namedArg in arguments.Attribute.NamedArguments)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
86if (attribute.ConstructorArguments.Length == 0 && attribute.NamedArguments.Length == 0) 93arguments.AddRange(attribute.NamedArguments.Select(kvp =>
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\AttributeGenerator.cs (2)
86if (attribute.ConstructorArguments.Length == 0 && attribute.NamedArguments.Length == 0) 93arguments.AddRange(attribute.NamedArguments.Select(kvp =>
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (2)
42If attribute.ConstructorArguments.Length = 0 AndAlso attribute.NamedArguments.Length = 0 Then 51arguments.AddRange(attribute.NamedArguments.Select(
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\AttributeGenerator.vb (2)
42If attribute.ConstructorArguments.Length = 0 AndAlso attribute.NamedArguments.Length = 0 Then 51arguments.AddRange(attribute.NamedArguments.Select(
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1026.Concat(attribute.NamedArguments.Select(n => this.AttributeArgument(n.Key, this.TypedConstantExpression(n.Value))))
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
191if (attributeData.NamedArguments.Any()) 193foreach (KeyValuePair<string, TypedConstant> namedArgument in attributeData.NamedArguments)
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
520foreach (var namedArgument in attribute.NamedArguments)
Microsoft.Gen.ComplianceReports (1)
Parser.cs (1)
264foreach (var namedArg in attribute.NamedArguments)
Microsoft.Gen.Logging (3)
Parsing\AttributeProcessors.cs (3)
65foreach (var a in attr.NamedArguments) 134foreach (var a in attr.NamedArguments) 172foreach (var a in attr.NamedArguments)
Microsoft.Gen.Metrics (4)
Parser.cs (4)
283if (!attribute.NamedArguments.IsDefaultOrEmpty) 285foreach (var arg in attribute.NamedArguments) 428if (!methodAttribute.NamedArguments.IsDefaultOrEmpty) 430namedArg = methodAttribute.NamedArguments[0];
Microsoft.Gen.MetricsReports (4)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (4)
283if (!attribute.NamedArguments.IsDefaultOrEmpty) 285foreach (var arg in attribute.NamedArguments) 428if (!methodAttribute.NamedArguments.IsDefaultOrEmpty) 430namedArg = methodAttribute.NamedArguments[0];
Microsoft.Interop.ComInterfaceGenerator (3)
GeneratedComInterfaceAttributeData.cs (1)
64var args = attr.NamedArguments.ToImmutableDictionary();
VirtualMethodPointerStubGenerator.cs (1)
299foreach (KeyValuePair<string, TypedConstant> arg in unmanagedCallConvAttribute.NamedArguments)
VtableIndexStubGenerator.cs (1)
138var namedArguments = ImmutableDictionary.CreateRange(attrData.NamedArguments);
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
125foreach (KeyValuePair<string, TypedConstant> arg in unmanagedCallConvAttribute.NamedArguments) 200ImmutableDictionary<string, TypedConstant> namedArguments = ImmutableDictionary.CreateRange(attrData.NamedArguments);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
142ImmutableDictionary<string, TypedConstant> namedArguments = ImmutableDictionary.CreateRange(attrData.NamedArguments);
Microsoft.Interop.SourceGeneration (4)
MarshalAsParser.cs (2)
135ImmutableDictionary<string, TypedConstant> namedArguments = ImmutableDictionary.CreateRange(attributeData.NamedArguments); 169foreach (KeyValuePair<string, TypedConstant> namedArg in attributeData.NamedArguments)
MarshalUsingAttributeParser.cs (2)
66ImmutableDictionary<string, TypedConstant> namedArgs = ImmutableDictionary.CreateRange(attributeData.NamedArguments); 76foreach (KeyValuePair<string, TypedConstant> arg in attributeData.NamedArguments)
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
152var shortPair = attr.NamedArguments.FirstOrDefault(p => p.Key == "ShortName");
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Parser.cs (1)
49ImmutableArray<KeyValuePair<string, TypedConstant>> args = attribute.NamedArguments;
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (3)
297foreach (KeyValuePair<string, TypedConstant> namedArg in attributeData.NamedArguments) 464foreach (KeyValuePair<string, TypedConstant> namedArg in attributeData.NamedArguments) 1273ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs = attributeData.NamedArguments;