49 instantiations of CodeAttributeDeclaration
dotnet-svcutil-lib (49)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
87
CodeAttributeDeclaration generatedCodeAttribute = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
137
CodeAttributeDeclaration xmlSchemaProviderAttribute = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.XmlSchemaProviderAttribute)),
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (7)
106
CodeAttributeDeclaration decl = new
CodeAttributeDeclaration
(typeof(GeneratedCodeAttribute).FullName);
191
CodeAttributeDeclaration include = new
CodeAttributeDeclaration
(includeType.FullName);
204
CodeAttributeDeclaration include = new
CodeAttributeDeclaration
(includeType.FullName);
258
CodeAttributeDeclaration flags = new
CodeAttributeDeclaration
(typeof(FlagsAttribute).FullName);
267
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(type.FullName);
299
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(type.FullName);
315
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(type.FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (4)
114
codeClass.CustomAttributes.Add(new
CodeAttributeDeclaration
(typeof(DebuggerStepThroughAttribute).FullName));
208
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(SoapElementAttribute).FullName);
252
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(SoapIgnoreAttribute).FullName);
280
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(SoapIgnoreAttribute).FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (12)
161
codeClass.CustomAttributes.Add(new
CodeAttributeDeclaration
(typeof(DebuggerStepThroughAttribute).FullName));
191
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(rootAttrName);
535
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(DefaultValueAttribute).FullName, arguments);
707
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlNamespaceDeclarationsAttribute).FullName);
797
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlChoiceIdentifierAttribute).FullName);
803
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlIgnoreAttribute).FullName);
823
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlIgnoreAttribute).FullName);
851
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlIgnoreAttribute).FullName);
859
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlTextAttribute).FullName);
893
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(attributeType.FullName);
945
CodeAttributeDeclaration attribute = new
CodeAttributeDeclaration
(typeof(XmlAnyElementAttribute).FullName);
963
metadata.Add(new
CodeAttributeDeclaration
(typeof(XmlAnyAttributeAttribute).FullName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (13)
510
CodeAttributeDeclaration debuggerStepThroughAttribute = new
CodeAttributeDeclaration
(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName);
511
CodeAttributeDeclaration generatedCodeAttribute = new
CodeAttributeDeclaration
(typeof(GeneratedCodeAttribute).FullName);
815
CodeAttributeDeclaration dataContractAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute));
880
CodeAttributeDeclaration dataMemberAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfDataMemberAttribute));
1002
CodeAttributeDeclaration knownTypeAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfKnownTypeAttribute));
1069
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfFlagsAttribute)));
1074
CodeAttributeDeclaration dataContractAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute));
1093
CodeAttributeDeclaration enumMemberAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfEnumMemberAttribute));
1164
CodeAttributeDeclaration collectionContractAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfCollectionDataContractAttribute));
1207
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(
1215
type.CustomAttributes.Add(new
CodeAttributeDeclaration
(
1235
CodeAttributeDeclaration xmlRootAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfXmlRootAttribute));
1276
CodeAttributeDeclaration namespaceAttribute = new
CodeAttributeDeclaration
(DataContract.GetClrTypeFullName(Globals.TypeOfContractNamespaceAttribute));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
24
CodeAttributeDeclaration result = new
CodeAttributeDeclaration
(refT);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
254
CodeAttributeDeclaration browsableAttribute = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(EditorBrowsableAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
111
CodeAttributeDeclaration knownTypeAttribute = new
CodeAttributeDeclaration
(typeof(ServiceKnownTypeAttribute).FullName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
993
CodeAttributeDeclaration attr = new
CodeAttributeDeclaration
(generator.GetCodeTypeReference(attributeType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (6)
343
CodeAttributeDeclaration serviceContractAttr = new
CodeAttributeDeclaration
(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ServiceContractAttribute)));
398
CodeAttributeDeclaration serviceOperationAttr = new
CodeAttributeDeclaration
(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));
491
codeType.CustomAttributes.Add(new
CodeAttributeDeclaration
(_parent.GetCodeTypeReference(typeof(DebuggerStepThroughAttribute))));
497
CodeAttributeDeclaration generatedCodeAttribute = new
CodeAttributeDeclaration
(_parent.GetCodeTypeReference(typeof(GeneratedCodeAttribute)));
607
CodeAttributeDeclaration faultContractAttr = new
CodeAttributeDeclaration
(context.ServiceContractGenerator.GetCodeTypeReference(typeof(FaultContractAttribute)));
824
CodeAttributeDeclaration attrDecl = new
CodeAttributeDeclaration
(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
170
CodeAttributeDeclaration knownType = new
CodeAttributeDeclaration
(new CodeTypeReference(typeof(ServiceKnownTypeAttribute)));
114 references to CodeAttributeDeclaration
dotnet-svcutil-lib (114)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
87
CodeAttributeDeclaration
generatedCodeAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(GeneratedCodeAttribute)));
137
CodeAttributeDeclaration
xmlSchemaProviderAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.XmlSchemaProviderAttribute)),
CodeDomFixup\CodeDomHelpers.cs (3)
35
internal static
CodeAttributeDeclaration
FindAttribute<T>(CodeAttributeDeclarationCollection attrs)
37
return CollectionHelpers.Find<
CodeAttributeDeclaration
>(
39
delegate (
CodeAttributeDeclaration
attr)
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (4)
48
CollectionHelpers.MapList<
CodeAttributeDeclaration
>(type.CustomAttributes, IsValidAttribute, null);
55
CollectionHelpers.MapList<
CodeAttributeDeclaration
>(member.CustomAttributes, IsValidAttribute, null);
58
protected override void Visit(
CodeAttributeDeclaration
attr)
108
private static bool IsValidAttribute(
CodeAttributeDeclaration
attr)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
108
protected override void Visit(
CodeAttributeDeclaration
attr)
525
else if (obj is
CodeAttributeDeclaration
)
526
Visit((
CodeAttributeDeclaration
)obj);
537
protected virtual void Visit(
CodeAttributeDeclaration
attr) { }
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (4)
497
CodeAttributeDeclaration
serviceContractAttribute = null;
498
foreach (
CodeAttributeDeclaration
attr in iface.CustomAttributes)
522
CodeAttributeDeclaration
operationContractAttribute = null;
523
foreach (
CodeAttributeDeclaration
attr in method.CustomAttributes)
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (1)
45
protected override void Visit(
CodeAttributeDeclaration
attr)
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (1)
33
foreach (
CodeAttributeDeclaration
attr in syncMethod.CustomAttributes)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1192
CodeAttributeDeclaration
current = (
CodeAttributeDeclaration
)en.Current;
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (2)
183
CodeAttributeDeclaration
current = (
CodeAttributeDeclaration
)en.Current;
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3517
CodeAttributeDeclaration
current = (
CodeAttributeDeclaration
)en.Current;
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (3)
32
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/>.
41
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> using the specified name.
51
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> using the specified
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclarationCollection.cs (18)
14
/// A collection that stores <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> objects.
45
/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeAttributeDeclarationCollection'/> containing any array of <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> objects.
48
public CodeAttributeDeclarationCollection(
CodeAttributeDeclaration
[] value)
54
/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/>.</para>
56
public
CodeAttributeDeclaration
this[int index]
60
return ((
CodeAttributeDeclaration
)(List[index]));
69
/// <para>Adds a <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> with the specified value to the
72
public int Add(
CodeAttributeDeclaration
value)
80
public void AddRange(
CodeAttributeDeclaration
[] value)
112
/// <see cref='Microsoft.CodeDom.CodeAttributeDeclarationCollection'/> contains the specified <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/>.</para>
114
public bool Contains(
CodeAttributeDeclaration
value)
123
public void CopyTo(
CodeAttributeDeclaration
[] array, int index)
129
/// <para>Returns the index of a <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> in
132
public int IndexOf(
CodeAttributeDeclaration
value)
138
/// <para>Inserts a <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> into the <see cref='Microsoft.CodeDom.CodeAttributeDeclarationCollection'/> at the specified index.</para>
140
public void Insert(int index,
CodeAttributeDeclaration
value)
146
/// <para> Removes a specific <see cref='Microsoft.CodeDom.
CodeAttributeDeclaration
'/> from the
149
public void Remove(
CodeAttributeDeclaration
value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (11)
31
private
CodeAttributeDeclaration
_generatedCodeAttribute;
100
internal
CodeAttributeDeclaration
GeneratedCodeAttribute
106
CodeAttributeDeclaration
decl = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName);
120
internal static
CodeAttributeDeclaration
FindAttributeDeclaration(Type type, CodeAttributeDeclarationCollection metadata)
122
foreach (
CodeAttributeDeclaration
attribute in metadata)
191
CodeAttributeDeclaration
include = new CodeAttributeDeclaration(includeType.FullName);
204
CodeAttributeDeclaration
include = new CodeAttributeDeclaration(includeType.FullName);
258
CodeAttributeDeclaration
flags = new CodeAttributeDeclaration(typeof(FlagsAttribute).FullName);
267
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(type.FullName);
299
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(type.FullName);
315
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(type.FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
208
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(SoapElementAttribute).FullName);
252
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName);
280
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(SoapIgnoreAttribute).FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (11)
186
foreach (
CodeAttributeDeclaration
attr in metadata)
191
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(rootAttrName);
535
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(DefaultValueAttribute).FullName, arguments);
707
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlNamespaceDeclarationsAttribute).FullName);
797
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlChoiceIdentifierAttribute).FullName);
803
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName);
823
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName);
851
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlIgnoreAttribute).FullName);
859
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlTextAttribute).FullName);
893
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(attributeType.FullName);
945
CodeAttributeDeclaration
attribute = new CodeAttributeDeclaration(typeof(XmlAnyElementAttribute).FullName);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (10)
510
CodeAttributeDeclaration
debuggerStepThroughAttribute = new CodeAttributeDeclaration(typeof(System.Diagnostics.DebuggerStepThroughAttribute).FullName);
511
CodeAttributeDeclaration
generatedCodeAttribute = new CodeAttributeDeclaration(typeof(GeneratedCodeAttribute).FullName);
815
CodeAttributeDeclaration
dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute));
880
CodeAttributeDeclaration
dataMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataMemberAttribute));
1002
CodeAttributeDeclaration
knownTypeAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfKnownTypeAttribute));
1074
CodeAttributeDeclaration
dataContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfDataContractAttribute));
1093
CodeAttributeDeclaration
enumMemberAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfEnumMemberAttribute));
1164
CodeAttributeDeclaration
collectionContractAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfCollectionDataContractAttribute));
1235
CodeAttributeDeclaration
xmlRootAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfXmlRootAttribute));
1276
CodeAttributeDeclaration
namespaceAttribute = new CodeAttributeDeclaration(DataContract.GetClrTypeFullName(Globals.TypeOfContractNamespaceAttribute));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (5)
12
public static
CodeAttributeDeclaration
FindOrCreateAttributeDeclaration<T>(CodeAttributeDeclarationCollection attributes)
20
foreach (
CodeAttributeDeclaration
attribute in attributes)
24
CodeAttributeDeclaration
result = new CodeAttributeDeclaration(refT);
30
public static void CreateOrOverridePropertyDeclaration<V>(
CodeAttributeDeclaration
attribute, string propertyName, V value)
61
public static CodeAttributeArgument TryGetAttributeProperty(
CodeAttributeDeclaration
attribute, string propertyName)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (2)
252
internal static
CodeAttributeDeclaration
CreateEditorBrowsableAttribute(EditorBrowsableState editorBrowsableState)
254
CodeAttributeDeclaration
browsableAttribute = new CodeAttributeDeclaration(new CodeTypeReference(typeof(EditorBrowsableAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
111
CodeAttributeDeclaration
knownTypeAttribute = new CodeAttributeDeclaration(typeof(ServiceKnownTypeAttribute).FullName);
130
foreach (
CodeAttributeDeclaration
assemblyCustomAttribute in codeCompileUnit.AssemblyCustomAttributes)
186
CodeAttributeDeclaration
dataContractAttributeDecl = null;
187
foreach (
CodeAttributeDeclaration
attr in typeAttributes)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (8)
87
internal static
CodeAttributeDeclaration
GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute)
767
CodeAttributeDeclaration
messageContractAttr = CustomAttributeHelper.FindOrCreateAttributeDeclaration<MessageContractAttribute>(partCodeGenerator.MessageLevelAttributes);
778
CodeAttributeDeclaration
messageContractAttr = CustomAttributeHelper.FindOrCreateAttributeDeclaration<MessageContractAttribute>(partCodeGenerator.MessageLevelAttributes);
853
CodeAttributeDeclaration
decl = CustomAttributeHelper.FindOrCreateAttributeDeclaration<T>(attrs);
970
internal static void CreateOrOverridePropertyDeclaration<V>(
CodeAttributeDeclaration
attribute, string propertyName, V value)
975
internal static
CodeAttributeDeclaration
FindOrCreateAttributeDeclaration<T>(CodeAttributeDeclarationCollection attributes)
981
internal static
CodeAttributeDeclaration
GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute)
993
CodeAttributeDeclaration
attr = new CodeAttributeDeclaration(generator.GetCodeTypeReference(attributeType));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (9)
343
CodeAttributeDeclaration
serviceContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(ServiceContractAttribute)));
396
private
CodeAttributeDeclaration
CreateOperationContractAttributeDeclaration(OperationDescription operationDescription, bool asyncPattern)
398
CodeAttributeDeclaration
serviceOperationAttr = new CodeAttributeDeclaration(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(OperationContractAttribute)));
497
CodeAttributeDeclaration
generatedCodeAttribute = new CodeAttributeDeclaration(_parent.GetCodeTypeReference(typeof(GeneratedCodeAttribute)));
596
CodeAttributeDeclaration
faultAttr = CreateAttrDecl(context, fault);
602
private static
CodeAttributeDeclaration
CreateAttrDecl(OperationContractGenerationContext context, FaultDescription fault)
607
CodeAttributeDeclaration
faultContractAttr = new CodeAttributeDeclaration(context.ServiceContractGenerator.GetCodeTypeReference(typeof(FaultContractAttribute)));
822
private static
CodeAttributeDeclaration
CreateAttrDecl(OperationContractGenerationContext context, TransactionFlowAttribute attr)
824
CodeAttributeDeclaration
attrDecl = new CodeAttributeDeclaration(context.Contract.ServiceContractGenerator.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (5)
155
foreach (
CodeAttributeDeclaration
attribute in source)
157
CodeAttributeDeclaration
knownType = ToKnownType(attribute);
166
private
CodeAttributeDeclaration
ToKnownType(
CodeAttributeDeclaration
include)
170
CodeAttributeDeclaration
knownType = new CodeAttributeDeclaration(new CodeTypeReference(typeof(ServiceKnownTypeAttribute)));