132 references to Add
System (2)
compmod\system\codedom\CodeAttributeArgumentCollection.cs (2)
81this.Add(value[i]); 96this.Add(value[i]);
System.Data.Entity.Design (3)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
376viewGenAttribute.Arguments.Add(viewGenTypeArgument);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
349attribute.Arguments.Add(new CodeAttributeArgument(expression)); 365attribute.Arguments.Add(new CodeAttributeArgument(arguments[i - 1].ToString(), expression));
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
159attribute.Arguments.Add(new CodeAttributeArgument(expression));
System.Management (20)
WmiGenerator.cs (20)
981cad.Arguments.Add(caa); 989cad.Arguments.Add(caa); 1023cad.Arguments.Add(caa); 1035cad.Arguments.Add(caa); 1062cad.Arguments.Add(caa); 1146cad.Arguments.Add(caa); 1161cad.Arguments.Add(caa); 1265cad.Arguments.Add(caa); 1273cad.Arguments.Add(caa); 1282cad.Arguments.Add(caa); 1307cad.Arguments.Add(caa); 1353cad.Arguments.Add(caa); 5057cad.Arguments.Add(caa); 5091cad.Arguments.Add(caa); 5428cad.Arguments.Add(caa); 5436cad.Arguments.Add(caa); 6079cad.Arguments.Add(caa); 6091cad.Arguments.Add(caa); 6305cad.Arguments.Add(caa); 6384cad.Arguments.Add(caa);
System.Runtime.Serialization (24)
System\Runtime\Serialization\CodeExporter.cs (24)
519generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 520generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString()))); 823dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 824dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace))); 826dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference))); 889dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataMemberName))); 891dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired))); 893dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue))); 895dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.OrderProperty, new CodePrimitiveExpression(dataMember.Order))); 1016knownTypeAttribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract)))); 1092dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1093dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace))); 1112enumMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ValueProperty, new CodePrimitiveExpression(stringValue))); 1233collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1234collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace))); 1236collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference))); 1237collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ItemName)))); 1240collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.KeyName)))); 1241collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ValueName)))); 1308xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value))); 1312xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value))); 1316xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(false))); 1345namespaceAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(dataContractNamespace))); 1346namespaceAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
System.ServiceModel (31)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
54attribute.Arguments.Add(attributeProperty);
System\ServiceModel\Description\ClientClassGenerator.cs (1)
257browsableAttribute.Arguments.Add(browsableAttributeValue);
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
112knownTypeAttribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(knownTypeReference))); 215dataContractAttributeDecl.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(part.Namespace)));
System\ServiceModel\Description\OperationGenerator.cs (7)
775messageContractAttr.Arguments.Add(new CodeAttributeArgument("ProtectionLevel", 787messageContractAttr.Arguments.Add(new CodeAttributeArgument("WrapperName", 789messageContractAttr.Arguments.Add(new CodeAttributeArgument("WrapperNamespace", 791messageContractAttr.Arguments.Add(new CodeAttributeArgument("IsWrapped", 795messageContractAttr.Arguments.Add(new CodeAttributeArgument("IsWrapped", 1013attr.Arguments.Add(new CodeAttributeArgument(field.Name, GetArgValue(fieldValue))); 1022attr.Arguments.Add(new CodeAttributeArgument(property.Name, GetArgValue(propertyValue)));
System\ServiceModel\Description\ServiceContractGenerator.cs (19)
404serviceContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(friendlyName))); 408serviceContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(context.Contract.Namespace))); 410serviceContractAttr.Arguments.Add(new CodeAttributeArgument("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType))); 414serviceContractAttr.Arguments.Add(new CodeAttributeArgument("ProtectionLevel", 421serviceContractAttr.Arguments.Add(new CodeAttributeArgument("CallbackContract", new CodeTypeOfExpression(context.DuplexCallbackTypeReference))); 426serviceContractAttr.Arguments.Add(new CodeAttributeArgument("SessionMode", 455serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsOneWay", new CodePrimitiveExpression(true))); 459serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsTerminating", new CodePrimitiveExpression(true))); 463serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsInitiating", new CodePrimitiveExpression(false))); 467serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("AsyncPattern", new CodePrimitiveExpression(true))); 471serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("ProtectionLevel", 554generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 555generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString()))); 662faultContractAttr.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(exceptionTypeReference))); 664faultContractAttr.Arguments.Add(new CodeAttributeArgument("Action", new CodePrimitiveExpression(fault.Action))); 667faultContractAttr.Arguments.Add(new CodeAttributeArgument("ProtectionLevel", 674faultContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(fault.ElementName.EncodedName))); 676faultContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(fault.Namespace))); 880attrDecl.Arguments.Add(new CodeAttributeArgument(ServiceContractGenerator.GetEnumReference<TransactionFlowOption>(attr.Transactions)));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
172knownType.Arguments.Add(argument);
System.Web (10)
Compilation\AssemblyBuilder.cs (2)
533declaration.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression("ASP.NET"))); 534declaration.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(VersionInfo.SystemWebVersion)));
Compilation\BaseCodeDomTreeGenerator.cs (1)
174editorBrowsableAttribute.Arguments.Add(new CodeAttributeArgument(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never")));
Compilation\UserControlCodeDomTreeGenerator.cs (7)
38attribDecl.Arguments.Add(attribArg); 40attribDecl.Arguments.Add(attribArg); 42attribDecl.Arguments.Add(attribArg); 44attribDecl.Arguments.Add(attribArg); 46attribDecl.Arguments.Add(attribArg); 48attribDecl.Arguments.Add(attribArg); 52attribDecl.Arguments.Add(attribArg);
System.Web.Services (5)
System\Web\Services\Description\SoapProtocolImporter.cs (3)
450webService.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(targetNs))); 455attribute.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(XmlConvert.DecodeName(Binding.Name)))); 456attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(Binding.ServiceDescription.TargetNamespace)));
System\Web\Services\Description\WebCodeGenerator.cs (2)
50decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 52decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
System.Workflow.Activities (2)
WebServiceReceive.cs (2)
793attrDecl.Arguments.Add(new CodeAttributeArgument("Description", new CodePrimitiveExpression(methodInfo.Name))); 794attrDecl.Arguments.Add(new CodeAttributeArgument("EnableSession", new CodePrimitiveExpression(false)));
System.Workflow.ComponentModel (2)
Shared\XomlSerializationHelpers.cs (2)
290xomlSourceAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(filePath))); 291xomlSourceAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(checksum)));
System.Xml (32)
System\Xml\Serialization\CodeExporter.cs (10)
107decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 109decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version))); 173include.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(derived.TypeDesc.FullName))); 183include.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(arrayMapping.TypeDesc.FullName))); 238attribute.Arguments.Add(new CodeAttributeArgument("AnonymousType", new CodePrimitiveExpression(true))); 242attribute.Arguments.Add(new CodeAttributeArgument("TypeName", new CodePrimitiveExpression(name))); 246attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 249attribute.Arguments.Add(new CodeAttributeArgument("IncludeInSchema", new CodePrimitiveExpression(false))); 261attribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(derived.TypeDesc.FullName))); 275attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(constant.XmlName)));
System\Xml\Serialization\SoapCodeExporter.cs (3)
196attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(elementName))); 199attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name))); 202attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(true)));
System\Xml\Serialization\XmlCodeExporter.cs (19)
176attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(name))); 179attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 182attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name))); 185attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable))); 694attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(member.ChoiceIdentifier.MemberName))); 751attribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(typeDesc.FullName))); 754attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(dataType))); 778attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(name))); 782attribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression("System.Nullable`1[" + typeDesc.FullName + "]"))); 786attribute.Arguments.Add(new CodeAttributeArgument(new CodeTypeOfExpression(typeDesc.FullName))); 790attribute.Arguments.Add(new CodeAttributeArgument("Form", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(XmlSchemaForm).FullName), Enum.Format(typeof(XmlSchemaForm), form, "G")))); 797attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 800attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name))); 803attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression((bool)isNullable))); 806attribute.Arguments.Add(new CodeAttributeArgument("NestingLevel", new CodePrimitiveExpression(nestingLevel))); 809attribute.Arguments.Add(new CodeAttributeArgument("Order", new CodePrimitiveExpression(sequenceId))); 818attribute.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(name))); 821attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 824attribute.Arguments.Add(new CodeAttributeArgument("Order", new CodePrimitiveExpression(sequenceId)));