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