35 references to Add
Microsoft.Build.Tasks.Core (5)
system.design\stronglytypedresourcebuilder.cs (4)
307
generatedCodeAttrib.Arguments.
Add
(toolArg);
308
generatedCodeAttrib.Arguments.
Add
(versionArg);
341
suppressMessageAttrib.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("Microsoft.Performance")));
342
suppressMessageAttrib.Arguments.
Add
(new CodeAttributeArgument(new CodePrimitiveExpression("CA1811:AvoidUncalledPrivateCode")));
WriteCodeFragment.cs (1)
460
attribute.Arguments.
Add
(new CodeAttributeArgument(parameter.Name, value));
System.CodeDom (2)
System\CodeDom\CodeAttributeArgumentCollection.cs (2)
39
Add
(value[i]);
53
Add
(value[i]);
System.Runtime.Serialization.Schema (24)
System\Runtime\Serialization\Schema\CodeExporter.cs (24)
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))));
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 (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")));