55 references to Add
Microsoft.Build.Tasks.Core (5)
system.design\stronglytypedresourcebuilder.cs (4)
336
generatedCodeAttrib.Arguments.
Add
(toolArg);
337
generatedCodeAttrib.Arguments.
Add
(versionArg);
370
suppressMessageAttrib.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance")));
371
suppressMessageAttrib.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("CA1811:AvoidUncalledPrivateCode")));
WriteCodeFragment.cs (1)
486
attribute.Arguments.
Add
(new CodeAttributeArgument(parameter.Name, value));
System.CodeDom (2)
System\CodeDom\CodeAttributeArgumentCollection.cs (2)
36
Add
(value[i]);
47
Add
(value[i]);
System.Management (20)
System\Management\WMIGenerator.cs (20)
940
cad.Arguments.
Add
(caa);
948
cad.Arguments.
Add
(caa);
982
cad.Arguments.
Add
(caa);
994
cad.Arguments.
Add
(caa);
1021
cad.Arguments.
Add
(caa);
1105
cad.Arguments.
Add
(caa);
1120
cad.Arguments.
Add
(caa);
1224
cad.Arguments.
Add
(caa);
1232
cad.Arguments.
Add
(caa);
1241
cad.Arguments.
Add
(caa);
1266
cad.Arguments.
Add
(caa);
1312
cad.Arguments.
Add
(caa);
4944
cad.Arguments.
Add
(caa);
4978
cad.Arguments.
Add
(caa);
5326
cad.Arguments.
Add
(caa);
5334
cad.Arguments.
Add
(caa);
5966
cad.Arguments.
Add
(caa);
5978
cad.Arguments.
Add
(caa);
6191
cad.Arguments.
Add
(caa);
6270
cad.Arguments.
Add
(caa);
System.Runtime.Serialization.Schema (24)
System\Runtime\Serialization\Schema\CodeExporter.cs (24)
531
generatedCodeAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name)));
532
generatedCodeAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version?.ToString())));
812
dataContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName)));
813
dataContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.XmlName.Namespace)));
815
dataContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference)));
879
dataMemberAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataMemberName)));
881
dataMemberAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired)));
883
dataMemberAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue)));
885
dataMemberAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.OrderProperty, new CodePrimitiveExpression(dataMember.Order)));
1012
knownTypeAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract))));
1097
dataContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1098
dataContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.XmlName.Namespace)));
1115
enumMemberAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.ValueProperty, new CodePrimitiveExpression(stringValue)));
1261
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1262
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.XmlName.Namespace)));
1264
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference)));
1266
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(itemName))));
1272
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(keyName))));
1273
collectionContractAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(valueName))));
1344
xmlRootAttribute.Arguments.
Add
(new CodeAttributeArgument("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value)));
1348
xmlRootAttribute.Arguments.
Add
(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value)));
1352
xmlRootAttribute.Arguments.
Add
(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(false)));
1381
namespaceAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression(dataContractNamespace)));
1382
namespaceAttribute.Arguments.
Add
(new CodeAttributeArgument(ImportGlobals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
System.Windows.Forms.Design (4)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
451
generatedCodeAttrib.Arguments.
Add
(toolArg);
452
generatedCodeAttrib.Arguments.
Add
(versionArg);
492
suppressAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance")));
493
suppressAttribute.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("CA1811:AvoidUncalledPrivateCode")));