21 writes to CustomAttributes
System.Management (12)
WmiGenerator.cs (12)
982
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
1024
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
1063
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
1162
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
1266
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
1274
cmp2.
CustomAttributes
= new CodeAttributeDeclarationCollection();
5058
cmm.
CustomAttributes
= new CodeAttributeDeclarationCollection();
5092
cmm.
CustomAttributes
= new CodeAttributeDeclarationCollection();
5429
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
6080
cmp.
CustomAttributes
= new CodeAttributeDeclarationCollection();
6306
cmm.
CustomAttributes
= new CodeAttributeDeclarationCollection();
6385
cmm.
CustomAttributes
= new CodeAttributeDeclarationCollection();
System.Web (1)
Compilation\BaseCodeDomTreeGenerator.cs (1)
559
prop.
CustomAttributes
= attrDeclarations;
System.Web.Services (5)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
381
codeClass.
CustomAttributes
= new CodeAttributeDeclarationCollection();
System\Web\Services\Description\WebCodeGenerator.cs (4)
120
member.
CustomAttributes
= metadata;
144
ctor.
CustomAttributes
= metadata;
171
method.
CustomAttributes
= metadata;
227
codeClass.
CustomAttributes
= metadata;
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
389
CustomAttributes
=
702
CustomAttributes
= { GeneratedCodeAttribute }
887
CustomAttributes
= { GeneratedCodeAttribute }
250 references to CustomAttributes
PresentationBuildTasks (7)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (7)
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"));
3100
cmmMain.
CustomAttributes
.Add(new CodeAttributeDeclaration(typeof(STAThreadAttribute).FullName));
System (52)
compmod\microsoft\csharp\csharpcodeprovider.cs (18)
1640
if (e.
CustomAttributes
.Count > 0) {
1641
GenerateAttributes(e.
CustomAttributes
);
1755
if (e.
CustomAttributes
.Count > 0) {
1756
GenerateAttributes(e.
CustomAttributes
);
1766
if (e.
CustomAttributes
.Count > 0) {
1767
GenerateAttributes(e.
CustomAttributes
);
1803
if (e.
CustomAttributes
.Count > 0) {
1804
GenerateAttributes(e.
CustomAttributes
);
1858
if (e.
CustomAttributes
.Count > 0) {
1859
GenerateAttributes(e.
CustomAttributes
);
1940
if (e.
CustomAttributes
.Count > 0) {
1941
GenerateAttributes(e.
CustomAttributes
);
2232
if (e.
CustomAttributes
.Count > 0) {
2233
GenerateAttributes(e.
CustomAttributes
);
2282
if (e.
CustomAttributes
.Count > 0) {
2283
GenerateAttributes(e.
CustomAttributes
);
2385
if (e.
CustomAttributes
.Count > 0) {
2386
GenerateAttributes(e.
CustomAttributes
);
compmod\microsoft\visualbasic\VBCodeProvider.cs (22)
1717
if (e.
CustomAttributes
.Count > 0) {
1718
OutputAttributes(e.
CustomAttributes
, false);
1768
if (e.
CustomAttributes
.Count > 0) {
1769
OutputAttributes(e.
CustomAttributes
, false);
1780
if (e.
CustomAttributes
.Count > 0) {
1781
OutputAttributes(e.
CustomAttributes
, false);
1837
if (e.
CustomAttributes
.Count > 0) {
1838
OutputAttributes(e.
CustomAttributes
, false);
1933
if (e.
CustomAttributes
.Count > 0) {
1934
OutputAttributes(e.
CustomAttributes
, false);
1975
if (e.
CustomAttributes
.Count > 0) {
1976
OutputAttributes(e.
CustomAttributes
, false);
2105
if (e.
CustomAttributes
.Count > 0) {
2106
OutputAttributes(e.
CustomAttributes
, false);
2148
if (e.
CustomAttributes
.Count > 0) {
2149
OutputAttributes(e.
CustomAttributes
, false);
2172
if (e.
CustomAttributes
.Count > 0) {
2173
OutputAttributes(e.
CustomAttributes
, false);
2202
if (e.
CustomAttributes
.Count > 0) {
2203
OutputAttributes(e.
CustomAttributes
, false);
2218
if (e.
CustomAttributes
.Count > 0) {
2219
OutputAttributes(e.
CustomAttributes
, false);
compmod\system\codedom\compiler\CodeValidator.cs (12)
206
if (e.
CustomAttributes
.Count > 0) {
207
ValidateAttributes(e.
CustomAttributes
);
221
if (e.
CustomAttributes
.Count > 0) {
222
ValidateAttributes(e.
CustomAttributes
);
243
if (e.
CustomAttributes
.Count > 0) {
244
ValidateAttributes(e.
CustomAttributes
);
301
if (e.
CustomAttributes
.Count > 0) {
302
ValidateAttributes(e.
CustomAttributes
);
327
if (e.
CustomAttributes
.Count > 0) {
328
ValidateAttributes(e.
CustomAttributes
);
505
if (e.
CustomAttributes
.Count > 0) {
506
ValidateAttributes(e.
CustomAttributes
);
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 (21)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (19)
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);
170
propertyDecl.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
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);
273
propertyDecl.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
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\EntityContainerEmitter.cs (1)
356
codeProperty.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
76
typeDecl.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
System.Data.Services.Design (8)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (6)
63
typeDecl.
CustomAttributes
.Add(EmitSimpleAttribute(Utils.WebFrameworkCommonNamespace + "." + "DataServiceKeyAttribute", keys));
105
propertyDecl.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
192
ctm.
CustomAttributes
.Add(_generatedCodeAttribute);
501
typeDecl.
CustomAttributes
.Add(attribute);
510
typeDecl.
CustomAttributes
.Add(attribute);
550
typeDecl.
CustomAttributes
.Add(attribute);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
517
codeProperty.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
69
typeDecl.
CustomAttributes
.AddRange(additionalAttributes.ToArray());
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 (15)
System\Runtime\Serialization\CodeExporter.cs (15)
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);
System.ServiceModel (26)
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 (2)
83
context.SyncMethod.
CustomAttributes
.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, dataContractFormatAttribute));
113
context.SyncMethod.
CustomAttributes
.Add(knownTypeAttribute);
System\ServiceModel\Description\OperationGenerator.cs (11)
326
TypedMessageHelper.AddEditorBrowsableAttribute(typedMessageDecl.
CustomAttributes
);
392
CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.
CustomAttributes
), OperationContractAttribute.ActionPropertyName, this.Request.Action);
397
CustomAttributeHelper.FindOrCreateAttributeDeclaration<OperationContractAttribute>(this.Method.
CustomAttributes
), OperationContractAttribute.ReplyActionPropertyName, this.Response.Action);
416
this.ins = new ParametersPartCodeGenerator(this, beginMethod.Name, beginMethod.Parameters, beginMethod.
CustomAttributes
, FieldDirection.In);
417
this.outs = new ParametersPartCodeGenerator(this, beginMethod.Name, endMethod.Parameters, beginMethod.
CustomAttributes
, FieldDirection.Out);
571
return memberDecl.
CustomAttributes
;
578
return typeDecl.
CustomAttributes
;
597
TypedMessageHelper.AddEditorBrowsableAttribute(wrapperTypeDecl.
CustomAttributes
);
602
this.WrappedBodyTypeGenerator.AddTypeAttributes(messageName, defaultNS, wrapperTypeDecl.
CustomAttributes
, this.IsEncoded);
610
AddWrapperPart(messageDescription.MessageName, this.WrappedBodyTypeGenerator, partGenerator, messageDescription.Body.ReturnValue, wrapperTypeDecl.
CustomAttributes
);
619
AddWrapperPart(messageDescription.MessageName, this.WrappedBodyTypeGenerator, partGenerator, part, wrapperTypeDecl.
CustomAttributes
);
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 (2)
147
context.SyncMethod.
CustomAttributes
.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.ServiceContractGenerator, xmlSerializerFormatAttribute));
148
AddKnownTypes(context.SyncMethod.
CustomAttributes
, xmlSerializerFormatAttribute.IsEncoded ? SoapExporter.IncludeMetadata : XmlExporter.IncludeMetadata);
System.Web (4)
Compilation\BaseCodeDomTreeGenerator.cs (3)
175
member.
CustomAttributes
.Add(editorBrowsableAttribute);
413
_sourceDataClass.
CustomAttributes
.Add(attribDecl);
919
method.
CustomAttributes
.Add(attributeDeclaration);
Compilation\UserControlCodeDomTreeGenerator.cs (1)
55
_sourceDataClass.
CustomAttributes
.Add(attribDecl);
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1684
foreach (CodeAttributeDeclaration codeAttribute in typeDeclaration.
CustomAttributes
)
System.Web.Services (13)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
380
if (codeClass.
CustomAttributes
== null)
System\Web\Services\Description\MimeXmlImporter.cs (1)
109
codeClass.
CustomAttributes
.Add(attribute);
System\Web\Services\Description\SoapProtocolImporter.cs (6)
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);
System\Web\Services\Description\WebCodeGenerator.cs (5)
228
codeClass.
CustomAttributes
.Add(GeneratedCodeAttribute);
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 (2)
WebServiceReceive.cs (2)
761
typeDeclaration.
CustomAttributes
.Add(attributeDeclaration);
796
webMethod.
CustomAttributes
.Add(attrDecl);
System.Workflow.ComponentModel (13)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (2)
133
foreach (CodeAttributeDeclaration attribute in codeDomType.
CustomAttributes
)
359
attributeDecls.AddRange(codeType.
CustomAttributes
);
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (2)
139
this.attributes = Helper.LoadCustomAttributes(this.codeDomEvent.
CustomAttributes
, this.DeclaringType as DesignTimeType);
150
this.attributes = Helper.LoadCustomAttributes(this.codeDomEvent.
CustomAttributes
, this.DeclaringType as DesignTimeType);
AuthoringOM\Compiler\TypeSystem\FieldInfo.cs (2)
115
this.attributes = Helper.LoadCustomAttributes(this.codeDomField.
CustomAttributes
, this.DeclaringType as DesignTimeType);
126
this.attributes = Helper.LoadCustomAttributes(this.codeDomField.
CustomAttributes
, this.DeclaringType as DesignTimeType);
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (4)
122
this.attributes = Helper.LoadCustomAttributes(this.codeConstructor.
CustomAttributes
, this.DeclaringType as DesignTimeType);
132
this.attributes = Helper.LoadCustomAttributes(this.codeConstructor.
CustomAttributes
, this.DeclaringType as DesignTimeType);
286
this.attributes = Helper.LoadCustomAttributes(this.methodInfo.
CustomAttributes
, this.DeclaringType as DesignTimeType);
296
this.attributes = Helper.LoadCustomAttributes(this.methodInfo.
CustomAttributes
, this.DeclaringType as DesignTimeType);
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (2)
192
this.attributes = Helper.LoadCustomAttributes(this.property.
CustomAttributes
, this.DeclaringType as DesignTimeType);
203
this.attributes = Helper.LoadCustomAttributes(this.property.
CustomAttributes
, this.DeclaringType as DesignTimeType);
Shared\XomlSerializationHelpers.cs (1)
292
activityTypeDeclaration.
CustomAttributes
.Add(xomlSourceAttribute);
System.Xml (25)
System\Xml\Serialization\CodeExporter.cs (2)
229
codeClass.
CustomAttributes
.Add(flags);
276
field.
CustomAttributes
.Add(attribute);
System\Xml\Serialization\SoapCodeExporter.cs (10)
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"))}));
114
AddTypeMetadata(codeClass.
CustomAttributes
, typeof(SoapTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema);
147
CodeExporter.AddIncludeMetadata(codeClass.
CustomAttributes
, mapping, typeof(SoapIncludeAttribute));
225
AddMemberMetadata(field.
CustomAttributes
, member, false);
232
field.
CustomAttributes
.Add(attribute);
247
AddMemberMetadata(prop.
CustomAttributes
, member, false);
258
prop.
CustomAttributes
.Add(attribute);
System\Xml\Serialization\XmlCodeExporter.cs (13)
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"))}));
150
AddTypeMetadata(codeClass.
CustomAttributes
, typeof(XmlTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema);
152
else if (FindAttributeDeclaration(typeof(GeneratedCodeAttribute), codeClass.
CustomAttributes
) == null) {
154
codeClass.
CustomAttributes
.Add(GeneratedCodeAttribute);
163
AddRootMetadata(codeClass.
CustomAttributes
, mapping, name, ns, rootElement);
521
AddIncludeMetadata(codeClass.
CustomAttributes
, mapping, typeof(XmlIncludeAttribute));
710
AddMemberMetadata(field, field.
CustomAttributes
, member, ns, false, field.Comments, ctor);
717
field.
CustomAttributes
.Add(attribute);
732
AddMemberMetadata(field, prop.
CustomAttributes
, member, ns, false, prop.Comments, ctor);
743
prop.
CustomAttributes
.Add(attribute);
XamlBuildTask (8)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (8)
175
rootType.
CustomAttributes
.AddRange(attributeCollection);
198
rootType.
CustomAttributes
.Add(comVisibleFalseDeclaration);
853
beginMethod.
CustomAttributes
.Add(suppressMessageDeclaration);
854
beginMethod.
CustomAttributes
.Add(GeneratedCodeAttribute);
869
endMethod.
CustomAttributes
.Add(suppressMessageDeclaration);
870
endMethod.
CustomAttributes
.Add(GeneratedCodeAttribute);
951
propertyMember.
CustomAttributes
.AddRange(attributeCollection);
1044
classDeclaration.
CustomAttributes
.Add(GeneratedCodeAttribute);