36 instantiations of CodeAttributeDeclaration
Microsoft.Build.Tasks.Core (6)
system.design\stronglytypedresourcebuilder.cs (5)
224
srClass.CustomAttributes.Add(new
CodeAttributeDeclaration
(debuggerAttrib));
231
srClass.CustomAttributes.Add(new
CodeAttributeDeclaration
(compilerGenedAttrib));
302
var generatedCodeAttrib = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
339
var suppressMessageAttrib = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(SuppressMessageAttribute)));
411
var editorBrowsableAdvancedAttribute = new
CodeAttributeDeclaration
("System.ComponentModel.EditorBrowsableAttribute", editorBrowsableStateAdvanced);
WriteCodeFragment.cs (1)
254
var attribute = new
CodeAttributeDeclaration
(new CodeTypeReference(attributeItem.ItemSpec));
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1482
ctmTarget.CustomAttributes.Add(new
CodeAttributeDeclaration
(typeof(EditorBrowsableAttribute).FullName, caa));
1487
CodeAttributeDeclaration cad = new
CodeAttributeDeclaration
(
1497
CodeAttributeDeclaration cad = new
CodeAttributeDeclaration
(
2225
new
CodeAttributeDeclaration
(
2445
CodeAttributeDeclaration cad = new
CodeAttributeDeclaration
(
2493
ctdClass.CustomAttributes.Add(new
CodeAttributeDeclaration
("Microsoft.VisualBasic.CompilerServices.DesignerGenerated"));
2984
CodeAttributeDeclaration cad = new
CodeAttributeDeclaration
(
3221
cmmMain.CustomAttributes.Add(new
CodeAttributeDeclaration
(typeof(STAThreadAttribute).FullName));
3296
CodeAttributeDeclaration cad = new
CodeAttributeDeclaration
(
System.Runtime.Serialization.Schema (16)
System\Runtime\Serialization\Schema\CodeExporter.cs (16)
517
CodeAttributeDeclaration debuggerStepThroughAttribute = new
CodeAttributeDeclaration
(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName!);
518
CodeAttributeDeclaration generatedCodeAttribute = new
CodeAttributeDeclaration
(typeof(GeneratedCodeAttribute).FullName!);
798
CodeAttributeDeclaration dataContractAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(DataContractAttribute)));
863
CodeAttributeDeclaration dataMemberAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(DataMemberAttribute)));
876
CodeAttributeDeclaration optionalFieldAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(OptionalFieldAttribute)));
997
CodeAttributeDeclaration knownTypeAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(KnownTypeAttribute)));
1023
CodeAttributeDeclaration nonSerializedAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(NonSerializedAttribute)));
1076
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(FlagsAttribute))));
1081
CodeAttributeDeclaration dataContractAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(DataContractAttribute)));
1098
CodeAttributeDeclaration enumMemberAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(EnumMemberAttribute)));
1241
CodeAttributeDeclaration collectionContractAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(CollectionDataContractAttribute)));
1291
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(
1299
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(
1319
CodeAttributeDeclaration xmlRootAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(XmlRootAttribute)));
1360
CodeAttributeDeclaration namespaceAttribute = new
CodeAttributeDeclaration
(GetClrTypeFullName(typeof(ContractNamespaceAttribute)));
1690
get { return new
CodeAttributeDeclaration
(GetCodeTypeReference(typeof(SerializableAttribute))); }
System.Windows.Forms.Design (5)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (5)
380
classType.CustomAttributes.Add(
new
(new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute))
386
classType.CustomAttributes.Add(
new
(new CodeTypeReference(typeof(CompilerGeneratedAttribute))
442
CodeAttributeDeclaration generatedCodeAttrib =
new
(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
490
CodeAttributeDeclaration suppressAttribute =
new
(new CodeTypeReference(typeof(SuppressMessageAttribute)));
544
CodeAttributeDeclaration editorBrowsableAdvancedAttribute =
new
(
41 references to CodeAttributeDeclaration
Microsoft.Build.Tasks.Core (5)
system.design\stronglytypedresourcebuilder.cs (3)
302
var
generatedCodeAttrib = new CodeAttributeDeclaration(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
339
var
suppressMessageAttrib = new CodeAttributeDeclaration(new CodeTypeReference(typeof(SuppressMessageAttribute)));
411
var
editorBrowsableAdvancedAttribute = new CodeAttributeDeclaration("System.ComponentModel.EditorBrowsableAttribute", editorBrowsableStateAdvanced);
WriteCodeFragment.cs (2)
254
var
attribute = new CodeAttributeDeclaration(new CodeTypeReference(attributeItem.ItemSpec));
392
CodeAttributeDeclaration
attribute,
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (5)
1487
CodeAttributeDeclaration
cad = new CodeAttributeDeclaration(
1497
CodeAttributeDeclaration
cad = new CodeAttributeDeclaration(
2445
CodeAttributeDeclaration
cad = new CodeAttributeDeclaration(
2984
CodeAttributeDeclaration
cad = new CodeAttributeDeclaration(
3296
CodeAttributeDeclaration
cad = new CodeAttributeDeclaration(
System (1)
src\libraries\shims\System\ref\System.cs (1)
34
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeAttributeDeclaration
))]
System.CodeDom (14)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
2585
foreach (
CodeAttributeDeclaration
current in attributes)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
414
foreach (
CodeAttributeDeclaration
current in attributes)
System\CodeDom\CodeAttributeDeclarationCollection.cs (10)
19
public CodeAttributeDeclarationCollection(
CodeAttributeDeclaration
[] value)
24
public
CodeAttributeDeclaration
this[int index]
26
get => ((
CodeAttributeDeclaration
)(List[index]));
30
public int Add(
CodeAttributeDeclaration
value) => List.Add(value);
32
public void AddRange(
CodeAttributeDeclaration
[] value)
59
public bool Contains(
CodeAttributeDeclaration
value) => List.Contains(value);
61
public void CopyTo(
CodeAttributeDeclaration
[] array, int index) => List.CopyTo(array, index);
63
public int IndexOf(
CodeAttributeDeclaration
value) => List.IndexOf(value);
65
public void Insert(int index,
CodeAttributeDeclaration
value) => List.Insert(index, value);
67
public void Remove(
CodeAttributeDeclaration
value) => List.Remove(value);
System\CodeDom\Compiler\CodeGenerator.cs (1)
1002
foreach (
CodeAttributeDeclaration
current in attributes)
System\CodeDom\Compiler\CodeValidator.cs (1)
164
foreach (
CodeAttributeDeclaration
current in attributes)
System.Runtime.Serialization.Schema (13)
System\Runtime\Serialization\Schema\CodeExporter.cs (13)
517
CodeAttributeDeclaration
debuggerStepThroughAttribute = new CodeAttributeDeclaration(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName!);
518
CodeAttributeDeclaration
generatedCodeAttribute = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName!);
798
CodeAttributeDeclaration
dataContractAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(DataContractAttribute)));
863
CodeAttributeDeclaration
dataMemberAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(DataMemberAttribute)));
876
CodeAttributeDeclaration
optionalFieldAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(OptionalFieldAttribute)));
997
CodeAttributeDeclaration
knownTypeAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(KnownTypeAttribute)));
1023
CodeAttributeDeclaration
nonSerializedAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(NonSerializedAttribute)));
1081
CodeAttributeDeclaration
dataContractAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(DataContractAttribute)));
1098
CodeAttributeDeclaration
enumMemberAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(EnumMemberAttribute)));
1241
CodeAttributeDeclaration
collectionContractAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(CollectionDataContractAttribute)));
1319
CodeAttributeDeclaration
xmlRootAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(XmlRootAttribute)));
1360
CodeAttributeDeclaration
namespaceAttribute = new CodeAttributeDeclaration(GetClrTypeFullName(typeof(ContractNamespaceAttribute)));
1688
private
CodeAttributeDeclaration
SerializableAttribute
System.Windows.Forms.Design (3)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
442
CodeAttributeDeclaration
generatedCodeAttrib = new(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
490
CodeAttributeDeclaration
suppressAttribute = new(new CodeTypeReference(typeof(SuppressMessageAttribute)));
544
CodeAttributeDeclaration
editorBrowsableAdvancedAttribute = new(