47 instantiations of CodeAttributeArgument
Microsoft.Build.Tasks.Core (6)
system.design\stronglytypedresourcebuilder.cs (5)
304var toolArg = new CodeAttributeArgument(new CodePrimitiveExpression(typeof(StronglyTypedResourceBuilder).FullName)); 305var versionArg = new CodeAttributeArgument(new CodePrimitiveExpression(MSBuildConstants.CurrentAssemblyVersion)); 341suppressMessageAttrib.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance"))); 342suppressMessageAttrib.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression("CA1811:AvoidUncalledPrivateCode"))); 410var editorBrowsableStateAdvanced = new CodeAttributeArgument(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(editorBrowsableStateTypeRef), "Advanced"));
WriteCodeFragment.cs (1)
460attribute.Arguments.Add(new CodeAttributeArgument(parameter.Name, value));
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1473CodeAttributeArgument caa = new CodeAttributeArgument(cfre); 1481new CodeAttributeArgument(new CodePrimitiveExpression(category)), 1482new CodeAttributeArgument(new CodePrimitiveExpression(rule))); 2220new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance")), 2221new CodeAttributeArgument(new CodePrimitiveExpression("CA1823:AvoidUnusedPrivateFields")))); 2440new CodeAttributeArgument(new CodePrimitiveExpression(s_generatedCode_ToolName)), 2441new CodeAttributeArgument(new CodePrimitiveExpression(s_generatedCode_ToolVersion))); 2938new CodeAttributeArgument(new CodePrimitiveExpression(DefaultNamespace))); 3244new CodeAttributeArgument(new CodePrimitiveExpression(normalized)));
System.Runtime.Serialization.Schema (27)
System\Runtime\Serialization\Schema\CodeExporter.cs (27)
521generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name!))); 522generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version?.ToString()!))); 799dataContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName))); 800dataContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.XmlName.Namespace))); 802dataContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference))); 865dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataMemberName))); 867dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired))); 869dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue))); 871dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.OrderProperty, new CodePrimitiveExpression(dataMember.Order))); 998knownTypeAttribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract)))); 1082dataContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1083dataContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.XmlName.Namespace))); 1100enumMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.ValueProperty, new CodePrimitiveExpression(stringValue))); 1242collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1243collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.XmlName.Namespace))); 1245collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference))); 1246collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(itemName!)))); // ItemName is never null for Collection contracts. 1252collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(keyName)))); 1253collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(valueName)))); 1293new CodeAttributeArgument(NullReference), 1294new CodeAttributeArgument(ImportGlobals.IsAnyProperty, new CodePrimitiveExpression(true))) 1301new CodeAttributeArgument(new CodePrimitiveExpression(ImportGlobals.ExportSchemaMethod))) 1324xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value))); 1328xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value))); 1332xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(false))); 1361namespaceAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(dataContractNamespace))); 1362namespaceAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
System.Windows.Forms.Design (5)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (5)
444CodeAttributeArgument toolArg = new(new CodePrimitiveExpression(typeof(StronglyTypedResourceBuilder).FullName)); 448new(new CodePrimitiveExpression( 492suppressAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance"))); 493suppressAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression("CA1811:AvoidUncalledPrivateCode"))); 542CodeAttributeArgument editorBrowsableStateAdvanced = new(
28 references to CodeAttributeArgument
Microsoft.Build.Tasks.Core (3)
system.design\stronglytypedresourcebuilder.cs (3)
304var toolArg = new CodeAttributeArgument(new CodePrimitiveExpression(typeof(StronglyTypedResourceBuilder).FullName)); 305var versionArg = new CodeAttributeArgument(new CodePrimitiveExpression(MSBuildConstants.CurrentAssemblyVersion)); 410var editorBrowsableStateAdvanced = new CodeAttributeArgument(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(editorBrowsableStateTypeRef), "Advanced"));
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1473CodeAttributeArgument caa = new CodeAttributeArgument(cfre);
System (1)
src\libraries\shims\System\ref\System.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeAttributeArgument))]
System.CodeDom (20)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2147private void OutputAttributeArgument(CodeAttributeArgument arg) 2610foreach (CodeAttributeArgument arg in current.Arguments)
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
394protected override void OutputAttributeArgument(CodeAttributeArgument arg) 442foreach (CodeAttributeArgument arg in current.Arguments)
System\CodeDom\CodeAttributeArgumentCollection.cs (10)
17public CodeAttributeArgumentCollection(CodeAttributeArgument[] value) 22public CodeAttributeArgument this[int index] 24get => (CodeAttributeArgument)List[index]; 28public int Add(CodeAttributeArgument value) => List.Add(value); 30public void AddRange(CodeAttributeArgument[] value) 57public bool Contains(CodeAttributeArgument value) => List.Contains(value); 59public void CopyTo(CodeAttributeArgument[] array, int index) => List.CopyTo(array, index); 61public int IndexOf(CodeAttributeArgument value) => List.IndexOf(value); 63public void Insert(int index, CodeAttributeArgument value) => List.Insert(index, value); 65public void Remove(CodeAttributeArgument value) => List.Remove(value);
System\CodeDom\CodeAttributeDeclaration.cs (2)
19public CodeAttributeDeclaration(string name, params CodeAttributeArgument[] arguments) 27public CodeAttributeDeclaration(CodeTypeReference attributeType, params CodeAttributeArgument[] arguments)
System\CodeDom\Compiler\CodeGenerator.cs (2)
1017foreach (CodeAttributeArgument arg in current.Arguments) 1036protected virtual void OutputAttributeArgument(CodeAttributeArgument arg)
System\CodeDom\Compiler\CodeValidator.cs (2)
169foreach (CodeAttributeArgument arg in current.Arguments) 176private void ValidateAttributeArgument(CodeAttributeArgument arg)
System.Windows.Forms.Design (3)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
444CodeAttributeArgument toolArg = new(new CodePrimitiveExpression(typeof(StronglyTypedResourceBuilder).FullName)); 447CodeAttributeArgument versionArg = 542CodeAttributeArgument editorBrowsableStateAdvanced = new(