80 references to CustomAttributes
PresentationBuildTasks (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
1464ctmTarget.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(EditorBrowsableAttribute).FullName, caa)); 1474ctmTarget.CustomAttributes.Add(cad); 1482ctmTarget.CustomAttributes.Add(cad); 2206field.CustomAttributes.Add( 2432ctmTarget.CustomAttributes.Add(cad); 2475ctdClass.CustomAttributes.Add(new CodeAttributeDeclaration("Microsoft.VisualBasic.CompilerServices.DesignerGenerated")); 3202cmmMain.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(STAThreadAttribute).FullName));
System.CodeDom (52)
Microsoft\CSharp\CSharpCodeGenerator.cs (18)
1108if (e.CustomAttributes.Count > 0) 1110GenerateAttributes(e.CustomAttributes); 1242if (e.CustomAttributes.Count > 0) 1244GenerateAttributes(e.CustomAttributes); 1256if (e.CustomAttributes.Count > 0) 1258GenerateAttributes(e.CustomAttributes); 1291if (e.CustomAttributes.Count > 0) 1293GenerateAttributes(e.CustomAttributes); 1347if (e.CustomAttributes.Count > 0) 1349GenerateAttributes(e.CustomAttributes); 1437if (e.CustomAttributes.Count > 0) 1439GenerateAttributes(e.CustomAttributes); 1749if (e.CustomAttributes.Count > 0) 1751GenerateAttributes(e.CustomAttributes); 1798if (e.CustomAttributes.Count > 0) 1800GenerateAttributes(e.CustomAttributes); 1888if (e.CustomAttributes.Count > 0) 1890GenerateAttributes(e.CustomAttributes);
Microsoft\VisualBasic\VBCodeGenerator.cs (22)
1451if (e.CustomAttributes.Count > 0) 1453OutputAttributes(e.CustomAttributes, false); 1504if (e.CustomAttributes.Count > 0) 1506OutputAttributes(e.CustomAttributes, false); 1519if (e.CustomAttributes.Count > 0) 1521OutputAttributes(e.CustomAttributes, false); 1576if (e.CustomAttributes.Count > 0) 1578OutputAttributes(e.CustomAttributes, false); 1691if (e.CustomAttributes.Count > 0) 1693OutputAttributes(e.CustomAttributes, false); 1731if (e.CustomAttributes.Count > 0) 1733OutputAttributes(e.CustomAttributes, false); 1871if (e.CustomAttributes.Count > 0) 1873OutputAttributes(e.CustomAttributes, false); 1914if (e.CustomAttributes.Count > 0) 1916OutputAttributes(e.CustomAttributes, false); 1937if (e.CustomAttributes.Count > 0) 1939OutputAttributes(e.CustomAttributes, false); 1971if (e.CustomAttributes.Count > 0) 1973OutputAttributes(e.CustomAttributes, false); 1990if (e.CustomAttributes.Count > 0) 1992OutputAttributes(e.CustomAttributes, false);
System\CodeDom\Compiler\CodeValidator.cs (12)
233if (e.CustomAttributes.Count > 0) 235ValidateAttributes(e.CustomAttributes); 252if (e.CustomAttributes.Count > 0) 254ValidateAttributes(e.CustomAttributes); 277if (e.CustomAttributes.Count > 0) 279ValidateAttributes(e.CustomAttributes); 346if (e.CustomAttributes.Count > 0) 348ValidateAttributes(e.CustomAttributes); 373if (e.CustomAttributes.Count > 0) 375ValidateAttributes(e.CustomAttributes); 576if (e.CustomAttributes.Count > 0) 578ValidateAttributes(e.CustomAttributes);
System.Runtime.Serialization.Schema (15)
System\Runtime\Serialization\Schema\CodeExporter.cs (15)
528typeDecl.CustomAttributes.Add(debuggerStepThroughAttribute); 530typeDecl.CustomAttributes.Add(generatedCodeAttribute); 772type.CustomAttributes.Add(SerializableAttribute); 803type.CustomAttributes.Add(dataContractAttribute); 872property.CustomAttributes.Add(dataMemberAttribute); 877field.CustomAttributes.Add(optionalFieldAttribute); 999contractCodeDomInfo.TypeDeclaration.CustomAttributes.Add(knownTypeAttribute); 1024extensionDataObjectField.CustomAttributes.Add(nonSerializedAttribute); 1076type.CustomAttributes.Add(new CodeAttributeDeclaration(GetClrTypeFullName(typeof(FlagsAttribute)))); 1084type.CustomAttributes.Add(dataContractAttribute); 1101enumMember.CustomAttributes.Add(enumMemberAttribute); 1255generatedType.CustomAttributes.Add(collectionContractAttribute); 1291type.CustomAttributes.Add(new CodeAttributeDeclaration( 1299type.CustomAttributes.Add(new CodeAttributeDeclaration( 1333type.CustomAttributes.Add(xmlRootAttribute);
System.Windows.Forms.Design (6)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
380classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute)) 386classType.CustomAttributes.Add(new(new CodeTypeReference(typeof(CompilerGeneratedAttribute)) 454typeMember.CustomAttributes.Add(generatedCodeAttrib); 497constructor.CustomAttributes.Add(suppressAttribute); 548resourceManagerProperty.CustomAttributes.Add(editorBrowsableAdvancedAttribute); 568culture.CustomAttributes.Add(editorBrowsableAdvancedAttribute);