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