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