199 references to Add
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1469ctmTarget.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(EditorBrowsableAttribute).FullName, caa)); 1479ctmTarget.CustomAttributes.Add(cad); 1487ctmTarget.CustomAttributes.Add(cad); 2169field.CustomAttributes.Add( 2395ctmTarget.CustomAttributes.Add(cad); 2436ctdClass.CustomAttributes.Add(new CodeAttributeDeclaration("Microsoft.VisualBasic.CompilerServices.DesignerGenerated")); 2869ccu.AssemblyCustomAttributes.Add(cad); 3100cmmMain.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(STAThreadAttribute).FullName)); 3175ccu.AssemblyCustomAttributes.Add(cad);
System (2)
compmod\system\codedom\CodeAttributeDeclarationCollection.cs (2)
81this.Add(value[i]); 96this.Add(value[i]);
System.Activities (21)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (21)
724languageProperty.CustomAttributes.Add(GeneratedCodeAttribute); 725languageProperty.CustomAttributes.Add(BrowsableCodeAttribute); 726languageProperty.CustomAttributes.Add(EditorBrowsableCodeAttribute); 809getLocationsMethod.CustomAttributes.Add(GeneratedCodeAttribute); 810getLocationsMethod.CustomAttributes.Add(BrowsableCodeAttribute); 811getLocationsMethod.CustomAttributes.Add(EditorBrowsableCodeAttribute); 890getExpressionTreeForExpressionMethod.CustomAttributes.Add(GeneratedCodeAttribute); 894getExpressionTreeForExpressionMethod.CustomAttributes.Add(BrowsableCodeAttribute); 898getExpressionTreeForExpressionMethod.CustomAttributes.Add(EditorBrowsableCodeAttribute); 925invokeExpressionMethod.CustomAttributes.Add(GeneratedCodeAttribute); 926invokeExpressionMethod.CustomAttributes.Add(BrowsableCodeAttribute); 927invokeExpressionMethod.CustomAttributes.Add(EditorBrowsableCodeAttribute); 1271isValidMethod.CustomAttributes.Add(GeneratedCodeAttribute); 1272isValidMethod.CustomAttributes.Add(BrowsableCodeAttribute); 1273isValidMethod.CustomAttributes.Add(EditorBrowsableCodeAttribute); 1538expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new CodeTypeReference(typeof(DebuggerHiddenAttribute)))); 1582expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new CodeTypeReference(typeof(DebuggerHiddenAttribute)))); 1632expressionMethod.CustomAttributes.Add(new CodeAttributeDeclaration(new CodeTypeReference(typeof(DebuggerHiddenAttribute)))); 1798typedDataContext.CustomAttributes.Add(GeneratedCodeAttribute); 1802typedDataContext.CustomAttributes.Add(BrowsableCodeAttribute); 1806typedDataContext.CustomAttributes.Add(EditorBrowsableCodeAttribute);
System.Data (13)
fx\src\data\System\Data\CodeGen\datacache.cs (13)
320dataTableClass.CustomAttributes.Add(AttributeDecl("System.Serializable")); 321dataTableClass.CustomAttributes.Add(AttributeDecl("System.Diagnostics.DebuggerStepThrough")); 394countProp.CustomAttributes.Add(AttributeDecl("System.ComponentModel.Browsable", Primitive(false))); 761rowClass.CustomAttributes.Add(AttributeDecl("System.Diagnostics.DebuggerStepThrough")); 961rowClass.CustomAttributes.Add(AttributeDecl("System.Diagnostics.DebuggerStepThrough")); 1014dataSetClass.CustomAttributes.Add(AttributeDecl("System.Serializable")); 1015dataSetClass.CustomAttributes.Add(AttributeDecl("System.ComponentModel.DesignerCategoryAttribute", Str("code"))); 1016dataSetClass.CustomAttributes.Add(AttributeDecl("System.Diagnostics.DebuggerStepThrough")); 1017dataSetClass.CustomAttributes.Add(AttributeDecl("System.ComponentModel.ToolboxItem", Primitive(true))); 1018dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(XmlSchemaProviderAttribute).FullName, Primitive("GetTypedDataSetSchema"))); 1019dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(XmlRootAttribute).FullName, Primitive(stDataSetClassName))); 1360prop.CustomAttributes.Add(AttributeDecl("System.ComponentModel.Browsable", 1363prop.CustomAttributes.Add(AttributeDecl("System.ComponentModel.DesignerSerializationVisibilityAttribute",
System.Data.Entity.Design (20)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
377compileUnit.AssemblyCustomAttributes.Add(viewGenAttribute);
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (1)
38Generator.CompileUnit.AssemblyCustomAttributes.Add(
System\Data\EntityModel\Emitters\AttributeEmitter.cs (17)
58typeDecl.CustomAttributes.Add(attribute2); 61typeDecl.CustomAttributes.Add(attribute3); 84typeDecl.CustomAttributes.Add(attribute); 144member.CustomAttributes.Add(attribute); 164propertyDecl.CustomAttributes.Add(attribute); 201member.CustomAttributes.Add(_GeneratedCodeAttribute); 230propertyDecl.CustomAttributes.Add(scalarPropertyAttribute); 238propertyDecl.CustomAttributes.Add(attribute); 246propertyDecl.CustomAttributes.Add(attribute); 257propertyDecl.CustomAttributes.Add(attribute); 261propertyDecl.CustomAttributes.Add(attribute); 303typeDecl.CustomAttributes.Add(attribute); 306typeDecl.CustomAttributes.Add(attribute2); 378propertyDecl.CustomAttributes.Add(xmlIgnoreAttribute); 379propertyDecl.CustomAttributes.Add(soapIgnoreAttribute); 391propertyDecl.CustomAttributes.Add(browsableAttribute); 397propertyDecl.CustomAttributes.Add(browsableAttribute);
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
88CompileUnit.AssemblyCustomAttributes.Add(assemblyAttribute);
System.Data.Services.Design (5)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (5)
63typeDecl.CustomAttributes.Add(EmitSimpleAttribute(Utils.WebFrameworkCommonNamespace + "." + "DataServiceKeyAttribute", keys)); 192ctm.CustomAttributes.Add(_generatedCodeAttribute); 501typeDecl.CustomAttributes.Add(attribute); 510typeDecl.CustomAttributes.Add(attribute); 550typeDecl.CustomAttributes.Add(attribute);
System.Data.SqlXml (3)
System\Xml\Xsl\Xslt\Scripts.cs (2)
258unit.AssemblyCustomAttributes.Add(new CodeAttributeDeclaration("System.Security.SecurityTransparentAttribute")); 261unit.AssemblyCustomAttributes.Add(
System\Xml\Xsl\XsltOld\Compiler.cs (1)
781unit.AssemblyCustomAttributes.Add(
System.Management (21)
WmiGenerator.cs (21)
983cmp.CustomAttributes.Add(cad); 990cmp.CustomAttributes.Add(cad); 1025cmp.CustomAttributes.Add(cad); 1036cmp.CustomAttributes.Add(cad); 1064cmp.CustomAttributes.Add(cad); 1147SysPropsClass.CustomAttributes.Add(cad); 1163cmp.CustomAttributes.Add(cad); 1267cmp.CustomAttributes.Add(cad); 1275cmp2.CustomAttributes.Add(cad); 1283cmp.CustomAttributes.Add(cad); 1284cmp2.CustomAttributes.Add(cad); 1308cmp.CustomAttributes.Add(cad); 1354cmp.CustomAttributes.Add(cad); 5059cmm.CustomAttributes.Add(cad); 5093cmm.CustomAttributes.Add(cad); 5430cmp.CustomAttributes.Add(cad); 5437cmp.CustomAttributes.Add(cad); 6081cmp.CustomAttributes.Add(cad); 6092cmp.CustomAttributes.Add(cad); 6307cmm.CustomAttributes.Add(cad); 6386cmm.CustomAttributes.Add(cad);
System.Runtime.Serialization (16)
System\Runtime\Serialization\CodeExporter.cs (16)
527typeDecl.CustomAttributes.Add(debuggerStepThroughAttribute); 529typeDecl.CustomAttributes.Add(generatedCodeAttribute); 802type.CustomAttributes.Add(SerializableAttribute); 827type.CustomAttributes.Add(dataContractAttribute); 896property.CustomAttributes.Add(dataMemberAttribute); 901field.CustomAttributes.Add(optionalFieldAttribute); 1017contractCodeDomInfo.TypeDeclaration.CustomAttributes.Add(knownTypeAttribute); 1042extensionDataObjectField.CustomAttributes.Add(nonSerializedAttribute); 1086type.CustomAttributes.Add(new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfFlagsAttribute))); 1094type.CustomAttributes.Add(dataContractAttribute); 1113enumMember.CustomAttributes.Add(enumMemberAttribute); 1243generatedType.CustomAttributes.Add(collectionContractAttribute); 1275type.CustomAttributes.Add(new CodeAttributeDeclaration( 1283type.CustomAttributes.Add(new CodeAttributeDeclaration( 1317type.CustomAttributes.Add(xmlRootAttribute); 1347codeCompileUnit.AssemblyCustomAttributes.Add(namespaceAttribute);
System.ServiceModel (21)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
24attributes.Add(result);
System\ServiceModel\Description\ClientClassGenerator.cs (3)
244clientType.Members[methodPosition].CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced)); 506beginMethod.CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced)); 507endMethod.CustomAttributes.Add(CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (5)
83context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute)); 113context.SyncMethod.CustomAttributes.Add(knownTypeAttribute); 132targetCompileUnit.AssemblyCustomAttributes.Add(assemblyCustomAttribute); 220fieldAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataMemberAttribute)); 233typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, new DataContractAttribute()));
System\ServiceModel\Description\OperationGenerator.cs (1)
801attributes.Add(ClientClassGenerator.CreateEditorBrowsableAttribute(EditorBrowsableState.Advanced));
System\ServiceModel\Description\ServiceContractGenerator.cs (8)
431context.ContractType.CustomAttributes.Add(serviceContractAttr); 438context.SyncMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, false)); 442context.BeginMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, true)); 446context.TaskMethod.CustomAttributes.Add(CreateOperationContractAttributeDeclaration(context.Operation, false)); 545codeType.CustomAttributes.Add(new CodeAttributeDeclaration(parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute)))); 557codeType.CustomAttributes.Add(generatedCodeAttribute); 652methodDecl.CustomAttributes.Add(faultAttr); 872methodDecl.CustomAttributes.Add(CreateAttrDecl(context, attr));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (3)
147context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute)); 159destination.Add(knownType); 252typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlType));
System.Web (12)
Compilation\AssemblyBuilder.cs (1)
621_miscCodeCompileUnit.AssemblyCustomAttributes.Add(declaration);
Compilation\BaseCodeDomTreeGenerator.cs (3)
175member.CustomAttributes.Add(editorBrowsableAttribute); 413_sourceDataClass.CustomAttributes.Add(attribDecl); 919method.CustomAttributes.Add(attributeDeclaration);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
465attrDeclarations.Add(templateContainerAttrDeclaration); 476attrDeclarations.Add(templateInstanceAttrDeclaration);
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
309parameterExpr.CustomAttributes.Add(customAttrExpr); 314parameterExpr.CustomAttributes.Add(defaultValAttrExpr);
Compilation\UserControlCodeDomTreeGenerator.cs (1)
55_sourceDataClass.CustomAttributes.Add(attribDecl);
Configuration\BrowserCapabilitiesCodeGenerator.cs (3)
703ccu.AssemblyCustomAttributes.Add(aptca); 705ccu.AssemblyCustomAttributes.Add(declaration); 711ccu.AssemblyCustomAttributes.Add(declaration);
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1757parameter.CustomAttributes.Add(OutAttribute);
System.Web.Services (15)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
124foreach (CodeAttributeDeclaration attr in from) to.Add(attr);
System\Web\Services\Description\MimeXmlImporter.cs (1)
109codeClass.CustomAttributes.Add(attribute);
System\Web\Services\Description\SoapProtocolImporter.cs (7)
383codeClass.CustomAttributes.Add(attribute); 386codeClass.CustomAttributes.Add(attribute); 444codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 445codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new CodeAttributeArgument(new CodePrimitiveExpression("code")) })); 451codeClass.CustomAttributes.Add(webService); 458codeClass.CustomAttributes.Add(attribute); 793paramsMetadata[j].Add(ignoreAttribute);
System\Web\Services\Description\WebCodeGenerator.cs (6)
228codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 235metadata.Add(attribute); 270handler.CustomAttributes.Add(GeneratedCodeAttribute); 351codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 354codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 356codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new CodeAttributeArgument(new CodePrimitiveExpression("code")) }));
System.Workflow.Activities (3)
WebServiceReceive.cs (3)
761typeDeclaration.CustomAttributes.Add(attributeDeclaration); 796webMethod.CustomAttributes.Add(attrDecl); 813paramDecl.CustomAttributes.Add(new CodeAttributeDeclaration(new CodeTypeReference(typeof(System.Runtime.InteropServices.OutAttribute))));
System.Workflow.ComponentModel (1)
Shared\XomlSerializationHelpers.cs (1)
292activityTypeDeclaration.CustomAttributes.Add(xomlSourceAttribute);
System.Xml (29)
System\Xml\Serialization\CodeExporter.cs (6)
174includeMetadata.Add(include); 184includeMetadata.Add(include); 229codeClass.CustomAttributes.Add(flags); 252metadata.Add(attribute); 262metadata.Add(attribute); 276field.CustomAttributes.Add(attribute);
System\Xml\Serialization\SoapCodeExporter.cs (7)
103codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 106codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(SerializableAttribute).FullName)); 110codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 112codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] {new CodeAttributeArgument(new CodePrimitiveExpression("code"))})); 204metadata.Add(attribute); 232field.CustomAttributes.Add(attribute); 258prop.CustomAttributes.Add(attribute);
System\Xml\Serialization\XmlCodeExporter.cs (16)
139codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 142codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(SerializableAttribute).FullName)); 146codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 148codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] {new CodeAttributeArgument(new CodePrimitiveExpression("code"))})); 154codeClass.CustomAttributes.Add(GeneratedCodeAttribute); 187metadata.Add(attribute); 468metadata.Add(attribute); 616metadata.Add(attribute); 695metadata.Add(attribute); 699metadata.Add(attribute); 717field.CustomAttributes.Add(attribute); 743prop.CustomAttributes.Add(attribute); 756metadata.Add(attribute); 812metadata.Add(attribute); 826metadata.Add(attribute); 830metadata.Add(new CodeAttributeDeclaration(typeof(XmlAnyAttributeAttribute).FullName));
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
198rootType.CustomAttributes.Add(comVisibleFalseDeclaration); 231attributeCollection.Add(new CodeAttributeDeclaration(new CodeTypeReference(clrTypeName), arguments)); 853beginMethod.CustomAttributes.Add(suppressMessageDeclaration); 854beginMethod.CustomAttributes.Add(GeneratedCodeAttribute); 869endMethod.CustomAttributes.Add(suppressMessageDeclaration); 870endMethod.CustomAttributes.Add(GeneratedCodeAttribute); 1044classDeclaration.CustomAttributes.Add(GeneratedCodeAttribute);