141 instantiations of CodeAttributeDeclaration
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1469ctmTarget.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(EditorBrowsableAttribute).FullName, caa)); 1474CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 1484CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 2170new CodeAttributeDeclaration( 2390CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 2436ctdClass.CustomAttributes.Add(new CodeAttributeDeclaration("Microsoft.VisualBasic.CompilerServices.DesignerGenerated")); 2865CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 3100cmmMain.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(STAThreadAttribute).FullName)); 3171CodeAttributeDeclaration cad = new CodeAttributeDeclaration(
System.Activities (6)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
153generatedCodeAttribute = new CodeAttributeDeclaration( 169browsableCodeAttribute = new CodeAttributeDeclaration( 183editorBrowsableCodeAttribute = new CodeAttributeDeclaration( 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))));
System.Data (2)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
1545return new CodeAttributeDeclaration(name); 1548return new CodeAttributeDeclaration(name, new CodeAttributeArgument[] { new CodeAttributeArgument(value) });
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
374CodeAttributeDeclaration viewGenAttribute = new CodeAttributeDeclaration(EntityViewGenerationConstants.ViewGenerationCustomAttributeName);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
330CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(TypeReference.FromString(attributeType, true));
System.Data.Services.Design (6)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (5)
29private static readonly CodeAttributeDeclaration _generatedCodeAttribute = new CodeAttributeDeclaration( 140CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(TypeReference.FromString(attributeType, true)); 496CodeAttributeDeclaration attribute = new CodeAttributeDeclaration( 505CodeAttributeDeclaration attribute = new CodeAttributeDeclaration( 546CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
726CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(
System.Data.SqlXml (3)
System\Xml\Xsl\Xslt\Scripts.cs (2)
258unit.AssemblyCustomAttributes.Add(new CodeAttributeDeclaration("System.Security.SecurityTransparentAttribute")); 262new CodeAttributeDeclaration(
System\Xml\Xsl\XsltOld\Compiler.cs (1)
782new CodeAttributeDeclaration(
System.Management (20)
WmiGenerator.cs (20)
979cad = new CodeAttributeDeclaration(); 987cad = new CodeAttributeDeclaration(); 1021cad = new CodeAttributeDeclaration(); 1033cad = new CodeAttributeDeclaration(); 1060cad = new CodeAttributeDeclaration(); 1144cad = new CodeAttributeDeclaration(); 1159cad = new CodeAttributeDeclaration(); 1263cad = new CodeAttributeDeclaration(); 1271cad = new CodeAttributeDeclaration(); 1280cad = new CodeAttributeDeclaration(); 1305cad = new CodeAttributeDeclaration(); 1351cad = new CodeAttributeDeclaration(); 5055cad = new CodeAttributeDeclaration(); 5089cad = new CodeAttributeDeclaration(); 5426cad = new CodeAttributeDeclaration(); 5434cad = new CodeAttributeDeclaration(); 6077cad = new CodeAttributeDeclaration(); 6089cad = new CodeAttributeDeclaration(); 6303cad = new CodeAttributeDeclaration(); 6382cad = new CodeAttributeDeclaration();
System.Runtime.Serialization (16)
System\Runtime\Serialization\CodeExporter.cs (16)
515CodeAttributeDeclaration debuggerStepThroughAttribute = new CodeAttributeDeclaration(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName); 516CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 822CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute)); 887CodeAttributeDeclaration dataMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataMemberAttribute)); 900CodeAttributeDeclaration optionalFieldAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfOptionalFieldAttribute)); 1015CodeAttributeDeclaration knownTypeAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfKnownTypeAttribute)); 1041CodeAttributeDeclaration nonSerializedAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfNonSerializedAttribute)); 1086type.CustomAttributes.Add(new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfFlagsAttribute))); 1091CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute)); 1110CodeAttributeDeclaration enumMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfEnumMemberAttribute)); 1232CodeAttributeDeclaration collectionContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfCollectionDataContractAttribute)); 1275type.CustomAttributes.Add(new CodeAttributeDeclaration( 1283type.CustomAttributes.Add(new CodeAttributeDeclaration( 1303CodeAttributeDeclaration xmlRootAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfXmlRootAttribute)); 1344CodeAttributeDeclaration namespaceAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfContractNamespaceAttribute)); 1640get { return new CodeAttributeDeclaration(GetCodeTypeReference(Globals.TypeOfSerializableAttribute)); }
System.ServiceModel (11)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
23CodeAttributeDeclaration result = new CodeAttributeDeclaration(refT);
System\ServiceModel\Description\ClientClassGenerator.cs (1)
254CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(EditorBrowsableAttribute)));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
111CodeAttributeDeclaration knownTypeAttribute = new CodeAttributeDeclaration(typeof(ServiceKnownTypeAttribute).FullName);
System\ServiceModel\Description\OperationGenerator.cs (1)
1001CodeAttributeDeclaration attr = new CodeAttributeDeclaration(generator.GetCodeTypeReference(attributeType));
System\ServiceModel\Description\ServiceContractGenerator.cs (6)
397CodeAttributeDeclaration serviceContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ServiceContractAttribute))); 452CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute))); 545codeType.CustomAttributes.Add(new CodeAttributeDeclaration(parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute)))); 551CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(parent.GetCodeTypeReference(typeof(GeneratedCodeAttribute))); 661CodeAttributeDeclaration faultContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(FaultContractAttribute))); 879CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
169CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new CodeTypeReference(typeof(ServiceKnownTypeAttribute)));
System.Web (20)
Compilation\AssemblyBuilder.cs (9)
520CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 531CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 541CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 550CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 560CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 570CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 593declaration = new CodeAttributeDeclaration(new CodeTypeReference(attrType), new CodeAttributeArgument(field)); 600declaration = new CodeAttributeDeclaration(new CodeTypeReference(attrType), new CodeAttributeArgument(field)); 607CodeAttributeDeclaration declaration = new CodeAttributeDeclaration(
Compilation\BaseCodeDomTreeGenerator.cs (3)
172CodeAttributeDeclaration editorBrowsableAttribute = new CodeAttributeDeclaration(); 411CodeAttributeDeclaration attribDecl = new CodeAttributeDeclaration( 918CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration(new CodeTypeReference(typeof(System.Diagnostics.DebuggerNonUserCodeAttribute)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
460CodeAttributeDeclaration templateContainerAttrDeclaration = new CodeAttributeDeclaration( 470CodeAttributeDeclaration templateInstanceAttrDeclaration = new CodeAttributeDeclaration(
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
308var customAttrExpr = new CodeAttributeDeclaration(new CodeTypeReference(attr.AttributeType), attrArgs.ToArray()); 312var defaultValAttrExpr = new CodeAttributeDeclaration(new CodeTypeReference(typeof(DefaultParameterValueAttribute)),
Compilation\UserControlCodeDomTreeGenerator.cs (1)
34CodeAttributeDeclaration attribDecl = new CodeAttributeDeclaration(
Configuration\BrowserCapabilitiesCodeGenerator.cs (3)
696CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 701CodeAttributeDeclaration aptca = new CodeAttributeDeclaration( 707declaration = new CodeAttributeDeclaration(
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
268outAttribute = new CodeAttributeDeclaration(typeof(System.Runtime.InteropServices.OutAttribute).FullName);
System.Web.Services (9)
System\Web\Services\Description\SoapProtocolImporter.cs (5)
444codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DebuggerStepThroughAttribute).FullName)); 445codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new CodeAttributeArgument(new CodePrimitiveExpression("code")) })); 448CodeAttributeDeclaration webService = new CodeAttributeDeclaration(typeof(WebServiceAttribute).FullName); 454CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(WebServiceBindingAttribute).FullName); 780CodeAttributeDeclaration ignoreAttribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName);
System\Web\Services\Description\WebCodeGenerator.cs (4)
40CodeAttributeDeclaration decl = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 234CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName, arguments); 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 (3)
WebServiceReceive.cs (3)
760CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new CodeAttributeArgument("ConformsTo", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new CodeAttributeArgument("EmitConformanceClaims", new CodePrimitiveExpression(true))); 792CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration("WebMethodAttribute"); 813paramDecl.CustomAttributes.Add(new CodeAttributeDeclaration(new CodeTypeReference(typeof(System.Runtime.InteropServices.OutAttribute))));
System.Workflow.ComponentModel (1)
Shared\XomlSerializationHelpers.cs (1)
289CodeAttributeDeclaration xomlSourceAttribute = new CodeAttributeDeclaration(typeof(WorkflowMarkupSourceAttribute).FullName);
System.Xml (27)
System\Xml\Serialization\CodeExporter.cs (7)
98CodeAttributeDeclaration decl = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 172CodeAttributeDeclaration include = new CodeAttributeDeclaration(includeType.FullName); 182CodeAttributeDeclaration include = new CodeAttributeDeclaration(includeType.FullName); 228CodeAttributeDeclaration flags = new CodeAttributeDeclaration(typeof(FlagsAttribute).FullName); 236CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName); 260CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName); 274CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName);
System\Xml\Serialization\SoapCodeExporter.cs (6)
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"))})); 194CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapElementAttribute).FullName); 231CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName); 257CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName);
System\Xml\Serialization\XmlCodeExporter.cs (14)
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"))})); 174CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(rootAttrName); 467CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(DefaultValueAttribute).FullName, arguments); 615CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlNamespaceDeclarationsAttribute).FullName); 693CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlChoiceIdentifierAttribute).FullName); 698CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 716CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 742CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 749CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlTextAttribute).FullName); 776CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(attributeType.FullName); 816CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlAnyElementAttribute).FullName); 830metadata.Add(new CodeAttributeDeclaration(typeof(XmlAnyAttributeAttribute).FullName));
XamlBuildTask (5)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (5)
81generatedCodeAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(System.CodeDom.Compiler.GeneratedCodeAttribute).FullName), 196CodeAttributeDeclaration comVisibleFalseDeclaration = new CodeAttributeDeclaration("System.Runtime.InteropServices.ComVisible", 231attributeCollection.Add(new CodeAttributeDeclaration(new CodeTypeReference(clrTypeName), arguments)); 391new CodeAttributeDeclaration(new CodeTypeReference(typeof(DebuggerNonUserCodeAttribute))), 842CodeAttributeDeclaration suppressMessageDeclaration = new CodeAttributeDeclaration("System.Diagnostics.CodeAnalysis.SuppressMessage", suppressMessageArguments);
208 references to CodeAttributeDeclaration
PresentationBuildTasks (5)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (5)
1474CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 1484CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 2390CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 2865CodeAttributeDeclaration cad = new CodeAttributeDeclaration( 3171CodeAttributeDeclaration cad = new CodeAttributeDeclaration(
System (29)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
3064CodeAttributeDeclaration current = (CodeAttributeDeclaration)en.Current;
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
680CodeAttributeDeclaration current = (CodeAttributeDeclaration)en.Current;
compmod\system\codedom\CodeAttributeDeclaration.cs (3)
36/// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeDeclaration'/>. 44/// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeDeclaration'/> using the specified name. 53/// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeDeclaration'/> using the specified
compmod\system\codedom\CodeAttributeDeclarationCollection.cs (18)
17/// A collection that stores <see cref='System.CodeDom.CodeAttributeDeclaration'/> objects. 46/// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeDeclarationCollection'/> containing any array of <see cref='System.CodeDom.CodeAttributeDeclaration'/> objects. 49public CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value) { 54/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.CodeAttributeDeclaration'/>.</para> 56public CodeAttributeDeclaration this[int index] { 58return ((CodeAttributeDeclaration)(List[index])); 66/// <para>Adds a <see cref='System.CodeDom.CodeAttributeDeclaration'/> with the specified value to the 69public int Add(CodeAttributeDeclaration value) { 76public void AddRange(CodeAttributeDeclaration[] value) { 102/// <see cref='System.CodeDom.CodeAttributeDeclarationCollection'/> contains the specified <see cref='System.CodeDom.CodeAttributeDeclaration'/>.</para> 104public bool Contains(CodeAttributeDeclaration value) { 112public void CopyTo(CodeAttributeDeclaration[] array, int index) { 117/// <para>Returns the index of a <see cref='System.CodeDom.CodeAttributeDeclaration'/> in 120public int IndexOf(CodeAttributeDeclaration value) { 125/// <para>Inserts a <see cref='System.CodeDom.CodeAttributeDeclaration'/> into the <see cref='System.CodeDom.CodeAttributeDeclarationCollection'/> at the specified index.</para> 127public void Insert(int index, CodeAttributeDeclaration value) { 132/// <para> Removes a specific <see cref='System.CodeDom.CodeAttributeDeclaration'/> from the 135public void Remove(CodeAttributeDeclaration value) {
compmod\system\codedom\compiler\CodeGenerator.cs (2)
989CodeAttributeDeclaration current = (CodeAttributeDeclaration)en.Current;
compmod\system\codedom\compiler\CodeValidator.cs (2)
149CodeAttributeDeclaration current = (CodeAttributeDeclaration)en.Current;
System.Activities (6)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (6)
48static CodeAttributeDeclaration generatedCodeAttribute; 49static CodeAttributeDeclaration browsableCodeAttribute; 50static CodeAttributeDeclaration editorBrowsableCodeAttribute; 146static CodeAttributeDeclaration GeneratedCodeAttribute 163static CodeAttributeDeclaration BrowsableCodeAttribute 177static CodeAttributeDeclaration EditorBrowsableCodeAttribute
System.Data (2)
fx\src\data\System\Data\CodeGen\datacache.cs (2)
1544private static CodeAttributeDeclaration AttributeDecl(string name) { 1547private static CodeAttributeDeclaration AttributeDecl(string name, CodeExpression value) {
System.Data.Entity.Design (31)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
374CodeAttributeDeclaration viewGenAttribute = new CodeAttributeDeclaration(EntityViewGenerationConstants.ViewGenerationCustomAttributeName);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (20)
55CodeAttributeDeclaration attribute2 = EmitSimpleAttribute("System.Runtime.Serialization.DataContractAttribute"); 60CodeAttributeDeclaration attribute3 = EmitSimpleAttribute("System.Serializable"); 83CodeAttributeDeclaration attribute = EmitSimpleAttribute("System.Runtime.Serialization.KnownTypeAttribute", new CodeTypeOfExpression(subTypeRef)); 139CodeAttributeDeclaration attribute = EmitSimpleAttribute(attributeName); 157List<CodeAttributeDeclaration> additionalAttributes) 159CodeAttributeDeclaration attribute = EmitSimpleAttribute(FQAdoFrameworkDataClassesName("EdmRelationshipNavigationPropertyAttribute"), 190CodeAttributeDeclaration _GeneratedCodeAttribute; 212List<CodeAttributeDeclaration> additionalAttributes) 216CodeAttributeDeclaration scalarPropertyAttribute = EmitSimpleAttribute(FQAdoFrameworkDataClassesName("EdmScalarPropertyAttribute")); 237CodeAttributeDeclaration attribute = EmitSimpleAttribute(FQAdoFrameworkDataClassesName("EdmComplexPropertyAttribute")); 300CodeAttributeDeclaration attribute = EmitSimpleAttribute("System.Runtime.Serialization.DataContractAttribute"); 305CodeAttributeDeclaration attribute2 = EmitSimpleAttribute("System.Serializable"); 328public CodeAttributeDeclaration EmitSimpleAttribute(string attributeType, params object[] arguments) 330CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(TypeReference.FromString(attributeType, true)); 342public static void AddAttributeArguments(CodeAttributeDeclaration attribute, object[] arguments) 358public static void AddNamedAttributeArguments(CodeAttributeDeclaration attribute, params object[] arguments) 376CodeAttributeDeclaration xmlIgnoreAttribute = EmitSimpleAttribute(typeof(System.Xml.Serialization.XmlIgnoreAttribute).FullName); 377CodeAttributeDeclaration soapIgnoreAttribute = EmitSimpleAttribute(typeof(System.Xml.Serialization.SoapIgnoreAttribute).FullName); 390CodeAttributeDeclaration browsableAttribute = EmitSimpleAttribute(typeof(System.ComponentModel.BrowsableAttribute).FullName, false); 396CodeAttributeDeclaration browsableAttribute = EmitSimpleAttribute("System.Runtime.Serialization.DataMemberAttribute");
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
351List<CodeAttributeDeclaration> additionalAttributes = eventArgs.AdditionalAttributes;
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
77CodeAttributeDeclaration assemblyAttribute;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
189List<CodeAttributeDeclaration> additionalAttributes)
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
70List<CodeAttributeDeclaration> additionalAttributes)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (3)
31private List<CodeAttributeDeclaration> _additionalAttributes = new List<CodeAttributeDeclaration>(); 127public List<CodeAttributeDeclaration> AdditionalAttributes
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
30private List<CodeAttributeDeclaration> _additionalAttributes = new List<CodeAttributeDeclaration>(); 106public List<CodeAttributeDeclaration> AdditionalAttributes
System.Data.Services.Design (19)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (8)
29private static readonly CodeAttributeDeclaration _generatedCodeAttribute = new CodeAttributeDeclaration( 99List<CodeAttributeDeclaration> additionalAttributes) 138public CodeAttributeDeclaration EmitSimpleAttribute(string attributeType, params object[] arguments) 140CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(TypeReference.FromString(attributeType, true)); 152public static void AddAttributeArguments(CodeAttributeDeclaration attribute, object[] arguments) 496CodeAttributeDeclaration attribute = new CodeAttributeDeclaration( 505CodeAttributeDeclaration attribute = new CodeAttributeDeclaration( 546CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
725List<CodeAttributeDeclaration> additionalAttributes = eventArgs.AdditionalAttributes; 726CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
512List<CodeAttributeDeclaration> additionalAttributes = eventArgs.AdditionalAttributes;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
184List<CodeAttributeDeclaration> additionalAttributes)
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
63List<CodeAttributeDeclaration> additionalAttributes)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (3)
30private List<CodeAttributeDeclaration> _additionalAttributes = new List<CodeAttributeDeclaration>(); 141public List<CodeAttributeDeclaration> AdditionalAttributes
System\Data\EntityModel\TypeGeneratedEventArgs.cs (3)
27private List<CodeAttributeDeclaration> _additionalAttributes = new List<CodeAttributeDeclaration>(); 106public List<CodeAttributeDeclaration> AdditionalAttributes
System.Management (1)
WmiGenerator.cs (1)
92private CodeAttributeDeclaration cad;
System.Runtime.Serialization (13)
System\Runtime\Serialization\CodeExporter.cs (13)
515CodeAttributeDeclaration debuggerStepThroughAttribute = new CodeAttributeDeclaration(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName); 516CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 822CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute)); 887CodeAttributeDeclaration dataMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataMemberAttribute)); 900CodeAttributeDeclaration optionalFieldAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfOptionalFieldAttribute)); 1015CodeAttributeDeclaration knownTypeAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfKnownTypeAttribute)); 1041CodeAttributeDeclaration nonSerializedAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfNonSerializedAttribute)); 1091CodeAttributeDeclaration dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute)); 1110CodeAttributeDeclaration enumMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfEnumMemberAttribute)); 1232CodeAttributeDeclaration collectionContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfCollectionDataContractAttribute)); 1303CodeAttributeDeclaration xmlRootAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfXmlRootAttribute)); 1344CodeAttributeDeclaration namespaceAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfContractNamespaceAttribute)); 1638CodeAttributeDeclaration SerializableAttribute
System.ServiceModel (33)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (5)
11public static CodeAttributeDeclaration FindOrCreateAttributeDeclaration<T>(CodeAttributeDeclarationCollection attributes) 19foreach (CodeAttributeDeclaration attribute in attributes) 23CodeAttributeDeclaration result = new CodeAttributeDeclaration(refT); 29public static void CreateOrOverridePropertyDeclaration<V>(CodeAttributeDeclaration attribute, string propertyName, V value) 60public static CodeAttributeArgument TryGetAttributeProperty(CodeAttributeDeclaration attribute, string propertyName)
System\ServiceModel\Description\ClientClassGenerator.cs (2)
252internal static CodeAttributeDeclaration CreateEditorBrowsableAttribute(EditorBrowsableState editorBrowsableState) 254CodeAttributeDeclaration browsableAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(EditorBrowsableAttribute)));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
111CodeAttributeDeclaration knownTypeAttribute = new CodeAttributeDeclaration(typeof(ServiceKnownTypeAttribute).FullName); 130foreach (CodeAttributeDeclaration assemblyCustomAttribute in codeCompileUnit.AssemblyCustomAttributes) 186CodeAttributeDeclaration dataContractAttributeDecl = null; 187foreach (CodeAttributeDeclaration attr in typeAttributes)
System\ServiceModel\Description\OperationGenerator.cs (8)
87internal static CodeAttributeDeclaration GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute) 772CodeAttributeDeclaration messageContractAttr = CustomAttributeHelper.FindOrCreateAttributeDeclaration<MessageContractAttribute>(partCodeGenerator.MessageLevelAttributes); 783CodeAttributeDeclaration messageContractAttr = CustomAttributeHelper.FindOrCreateAttributeDeclaration<MessageContractAttribute>(partCodeGenerator.MessageLevelAttributes); 858CodeAttributeDeclaration decl = CustomAttributeHelper.FindOrCreateAttributeDeclaration<T>(attrs); 978internal static void CreateOrOverridePropertyDeclaration<V>(CodeAttributeDeclaration attribute, string propertyName, V value) 983internal static CodeAttributeDeclaration FindOrCreateAttributeDeclaration<T>(CodeAttributeDeclarationCollection attributes) 989internal static CodeAttributeDeclaration GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute) 1001CodeAttributeDeclaration attr = new CodeAttributeDeclaration(generator.GetCodeTypeReference(attributeType));
System\ServiceModel\Description\ServiceContractGenerator.cs (9)
397CodeAttributeDeclaration serviceContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ServiceContractAttribute))); 450CodeAttributeDeclaration CreateOperationContractAttributeDeclaration(OperationDescription operationDescription, bool asyncPattern) 452CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute))); 551CodeAttributeDeclaration generatedCodeAttribute = new CodeAttributeDeclaration(parent.GetCodeTypeReference(typeof(GeneratedCodeAttribute))); 650CodeAttributeDeclaration faultAttr = CreateAttrDecl(context, fault); 656static CodeAttributeDeclaration CreateAttrDecl(OperationContractGenerationContext context, FaultDescription fault) 661CodeAttributeDeclaration faultContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(FaultContractAttribute))); 877static CodeAttributeDeclaration CreateAttrDecl(OperationContractGenerationContext context, TransactionFlowAttribute attr) 879CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (5)
154foreach (CodeAttributeDeclaration attribute in source) 156CodeAttributeDeclaration knownType = ToKnownType(attribute); 165private CodeAttributeDeclaration ToKnownType(CodeAttributeDeclaration include) 169CodeAttributeDeclaration knownType = new CodeAttributeDeclaration(new CodeTypeReference(typeof(ServiceKnownTypeAttribute)));
System.Web (20)
Compilation\AssemblyBuilder.cs (9)
520CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 531CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 541CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 550CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 560CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 570CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 586CodeAttributeDeclaration declaration; 607CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 616private void AddAssemblyAttribute(CodeAttributeDeclaration declaration) {
Compilation\BaseCodeDomTreeGenerator.cs (3)
172CodeAttributeDeclaration editorBrowsableAttribute = new CodeAttributeDeclaration(); 411CodeAttributeDeclaration attribDecl = new CodeAttributeDeclaration( 918CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration(new CodeTypeReference(typeof(System.Diagnostics.DebuggerNonUserCodeAttribute)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
460CodeAttributeDeclaration templateContainerAttrDeclaration = new CodeAttributeDeclaration( 470CodeAttributeDeclaration templateInstanceAttrDeclaration = new CodeAttributeDeclaration(
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
171foreach (CodeAttributeDeclaration attr in paramExpr.CustomAttributes) {
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
308var customAttrExpr = new CodeAttributeDeclaration(new CodeTypeReference(attr.AttributeType), attrArgs.ToArray()); 312var defaultValAttrExpr = new CodeAttributeDeclaration(new CodeTypeReference(typeof(DefaultParameterValueAttribute)),
Compilation\UserControlCodeDomTreeGenerator.cs (1)
34CodeAttributeDeclaration attribDecl = new CodeAttributeDeclaration(
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
696CodeAttributeDeclaration declaration = new CodeAttributeDeclaration( 701CodeAttributeDeclaration aptca = new CodeAttributeDeclaration(
System.Web.Extensions (4)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (4)
113private static CodeAttributeDeclaration outAttribute; 262private static CodeAttributeDeclaration OutAttribute 1684foreach (CodeAttributeDeclaration codeAttribute in typeDeclaration.CustomAttributes) 1774foreach (CodeAttributeDeclaration attribute in metadata)
System.Web.Services (11)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
124foreach (CodeAttributeDeclaration attr in from) to.Add(attr);
System\Web\Services\Description\MimeXmlImporter.cs (1)
108foreach (CodeAttributeDeclaration attribute in Exporter.IncludeMetadata) {
System\Web\Services\Description\SoapProtocolImporter.cs (5)
382foreach (CodeAttributeDeclaration attribute in xmlExporter.IncludeMetadata) { 385foreach (CodeAttributeDeclaration attribute in soapExporter.IncludeMetadata) { 448CodeAttributeDeclaration webService = new CodeAttributeDeclaration(typeof(WebServiceAttribute).FullName); 454CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(WebServiceBindingAttribute).FullName); 780CodeAttributeDeclaration ignoreAttribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName);
System\Web\Services\Description\WebCodeGenerator.cs (4)
34private static CodeAttributeDeclaration generatedCodeAttribute; 37internal static CodeAttributeDeclaration GeneratedCodeAttribute { 40CodeAttributeDeclaration decl = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 234CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName, arguments);
System.Workflow.Activities (2)
WebServiceReceive.cs (2)
760CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new CodeAttributeArgument("ConformsTo", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new CodeAttributeArgument("EmitConformanceClaims", new CodePrimitiveExpression(true))); 792CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration("WebMethodAttribute");
System.Workflow.ComponentModel (3)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
133foreach (CodeAttributeDeclaration attribute in codeDomType.CustomAttributes)
AuthoringOM\Compiler\TypeSystem\Helper.cs (1)
148foreach (CodeAttributeDeclaration codeAttribute in codeAttributeCollection)
Shared\XomlSerializationHelpers.cs (1)
289CodeAttributeDeclaration xomlSourceAttribute = new CodeAttributeDeclaration(typeof(WorkflowMarkupSourceAttribute).FullName);
System.Xml (25)
System\Xml\Serialization\CodeExporter.cs (11)
38CodeAttributeDeclaration generatedCodeAttribute; 95internal CodeAttributeDeclaration GeneratedCodeAttribute { 98CodeAttributeDeclaration decl = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName); 116internal static CodeAttributeDeclaration FindAttributeDeclaration(Type type, CodeAttributeDeclarationCollection metadata) { 117foreach (CodeAttributeDeclaration attribute in metadata) { 172CodeAttributeDeclaration include = new CodeAttributeDeclaration(includeType.FullName); 182CodeAttributeDeclaration include = new CodeAttributeDeclaration(includeType.FullName); 228CodeAttributeDeclaration flags = new CodeAttributeDeclaration(typeof(FlagsAttribute).FullName); 236CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName); 260CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName); 274CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(type.FullName);
System\Xml\Serialization\SoapCodeExporter.cs (3)
194CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapElementAttribute).FullName); 231CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName); 257CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName);
System\Xml\Serialization\XmlCodeExporter.cs (11)
170foreach (CodeAttributeDeclaration attr in metadata) { 174CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(rootAttrName); 467CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(DefaultValueAttribute).FullName, arguments); 615CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlNamespaceDeclarationsAttribute).FullName); 693CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlChoiceIdentifierAttribute).FullName); 698CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 716CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 742CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName); 749CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlTextAttribute).FullName); 776CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(attributeType.FullName); 816CodeAttributeDeclaration attribute = new CodeAttributeDeclaration(typeof(XmlAnyElementAttribute).FullName);
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (4)
31static CodeAttributeDeclaration generatedCodeAttribute; 74static CodeAttributeDeclaration GeneratedCodeAttribute 196CodeAttributeDeclaration comVisibleFalseDeclaration = new CodeAttributeDeclaration("System.Runtime.InteropServices.ComVisible", 842CodeAttributeDeclaration suppressMessageDeclaration = new CodeAttributeDeclaration("System.Diagnostics.CodeAnalysis.SuppressMessage", suppressMessageArguments);