190 instantiations of CodeAttributeArgument
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1468
CodeAttributeArgument caa = new
CodeAttributeArgument
(cfre);
1476
new
CodeAttributeArgument
(new CodePrimitiveExpression(category)),
1477
new
CodeAttributeArgument
(new CodePrimitiveExpression(rule)));
2172
new
CodeAttributeArgument
(new CodePrimitiveExpression("Microsoft.Performance")),
2173
new
CodeAttributeArgument
(new CodePrimitiveExpression("CA1823:AvoidUnusedPrivateFields"))));
2392
new
CodeAttributeArgument
(new CodePrimitiveExpression(s_generatedCode_ToolName)),
2393
new
CodeAttributeArgument
(new CodePrimitiveExpression(s_generatedCode_ToolVersion)));
2867
new
CodeAttributeArgument
(new CodePrimitiveExpression(DefaultNamespace)));
3173
new
CodeAttributeArgument
(new CodePrimitiveExpression(normalized)));
System.Activities (4)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (4)
155
new
CodeAttributeArgument
(new CodePrimitiveExpression(currentAssemblyName.Name)),
156
new
CodeAttributeArgument
(new CodePrimitiveExpression(currentAssemblyName.Version.ToString())));
171
new
CodeAttributeArgument
(new CodePrimitiveExpression(false)));
185
new
CodeAttributeArgument
(new CodeFieldReferenceExpression(
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1548
return new CodeAttributeDeclaration(name, new CodeAttributeArgument[] { new
CodeAttributeArgument
(value) });
System.Data.Entity.Design (3)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
375
CodeAttributeArgument viewGenTypeArgument = new
CodeAttributeArgument
(viewGenTypeOfExpression);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
349
attribute.Arguments.Add(new
CodeAttributeArgument
(expression));
365
attribute.Arguments.Add(new
CodeAttributeArgument
(arguments[i - 1].ToString(), expression));
System.Data.Services.Design (4)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
31
new
CodeAttributeArgument
(new CodePrimitiveExpression(_generatorName)),
32
new
CodeAttributeArgument
(new CodePrimitiveExpression(_generatorVersion)));
159
attribute.Arguments.Add(new
CodeAttributeArgument
(expression));
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
728
CodeTypeReferenceOptions.GlobalReference), new
CodeAttributeArgument
(new CodePrimitiveExpression(entitySet.Name)));
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\Scripts.cs (1)
264
new
CodeAttributeArgument
(
System\Xml\Xsl\XsltOld\Compiler.cs (1)
784
new
CodeAttributeArgument
(
System.Management (20)
WmiGenerator.cs (20)
977
caa = new
CodeAttributeArgument
();
985
caa = new
CodeAttributeArgument
();
1019
caa = new
CodeAttributeArgument
();
1031
caa = new
CodeAttributeArgument
();
1058
caa = new
CodeAttributeArgument
();
1142
caa = new
CodeAttributeArgument
();
1157
caa = new
CodeAttributeArgument
();
1261
caa = new
CodeAttributeArgument
();
1269
caa = new
CodeAttributeArgument
();
1278
caa = new
CodeAttributeArgument
();
1303
caa = new
CodeAttributeArgument
();
1349
caa = new
CodeAttributeArgument
();
5053
caa = new
CodeAttributeArgument
();
5087
caa = new
CodeAttributeArgument
();
5424
caa = new
CodeAttributeArgument
();
5432
caa = new
CodeAttributeArgument
();
6075
caa = new
CodeAttributeArgument
();
6087
caa = new
CodeAttributeArgument
();
6301
caa = new
CodeAttributeArgument
();
6380
caa = new
CodeAttributeArgument
();
System.Runtime.Serialization (27)
System\Runtime\Serialization\CodeExporter.cs (27)
519
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
520
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
823
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
824
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace)));
826
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference)));
889
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataMemberName)));
891
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired)));
893
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue)));
895
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.OrderProperty, new CodePrimitiveExpression(dataMember.Order)));
1016
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract))));
1092
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1093
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace)));
1112
enumMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueProperty, new CodePrimitiveExpression(stringValue)));
1233
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1234
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace)));
1236
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference)));
1237
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ItemName))));
1240
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.KeyName))));
1241
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ValueName))));
1277
new
CodeAttributeArgument
(NullReference),
1278
new
CodeAttributeArgument
(Globals.IsAnyProperty, new CodePrimitiveExpression(true)))
1285
new
CodeAttributeArgument
(new CodePrimitiveExpression(Globals.ExportSchemaMethod)))
1308
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value)));
1312
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value)));
1316
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(false)));
1345
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(dataContractNamespace)));
1346
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
System.ServiceModel (30)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
53
attributeProperty = new
CodeAttributeArgument
(propertyName, newValue);
System\ServiceModel\Description\ClientClassGenerator.cs (1)
256
CodeAttributeArgument browsableAttributeValue = new
CodeAttributeArgument
(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
112
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(knownTypeReference)));
215
dataContractAttributeDecl.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(part.Namespace)));
System\ServiceModel\Description\OperationGenerator.cs (7)
775
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
787
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperName",
789
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperNamespace",
791
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
795
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
1013
attr.Arguments.Add(new
CodeAttributeArgument
(field.Name, GetArgValue(fieldValue)));
1022
attr.Arguments.Add(new
CodeAttributeArgument
(property.Name, GetArgValue(propertyValue)));
System\ServiceModel\Description\ServiceContractGenerator.cs (19)
404
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(friendlyName)));
408
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(context.Contract.Namespace)));
410
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType)));
414
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
421
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("CallbackContract", new CodeTypeOfExpression(context.DuplexCallbackTypeReference)));
426
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("SessionMode",
455
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsOneWay", new CodePrimitiveExpression(true)));
459
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsTerminating", new CodePrimitiveExpression(true)));
463
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsInitiating", new CodePrimitiveExpression(false)));
467
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("AsyncPattern", new CodePrimitiveExpression(true)));
471
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
554
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
555
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
662
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(exceptionTypeReference)));
664
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Action", new CodePrimitiveExpression(fault.Action)));
667
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
674
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(fault.ElementName.EncodedName)));
676
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(fault.Namespace)));
880
attrDecl.Arguments.Add(new
CodeAttributeArgument
(ServiceContractGenerator.GetEnumReference<TransactionFlowOption>(attr.Transactions)));
System.Web (24)
Compilation\AssemblyBuilder.cs (9)
523
new
CodeAttributeArgument
(new CodePrimitiveExpression(CultureName))});
533
declaration.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression("ASP.NET")));
534
declaration.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(VersionInfo.SystemWebVersion)));
552
new
CodeAttributeArgument
(new CodePrimitiveExpression(BuildManager.StrongNameKeyFile)));
562
new
CodeAttributeArgument
(new CodePrimitiveExpression(BuildManager.StrongNameKeyContainer)));
572
new
CodeAttributeArgument
(new CodePrimitiveExpression(true)));
593
declaration = new CodeAttributeDeclaration(new CodeTypeReference(attrType), new
CodeAttributeArgument
(field));
600
declaration = new CodeAttributeDeclaration(new CodeTypeReference(attrType), new
CodeAttributeArgument
(field));
609
new
CodeAttributeArgument
(new CodePrimitiveExpression(BuildManager.TargetFramework.FullName)));
Compilation\BaseCodeDomTreeGenerator.cs (1)
174
editorBrowsableAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never")));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
463
new
CodeAttributeArgument
(new CodeTypeOfExpression(containerType))});
473
new
CodeAttributeArgument
(
Compilation\TemplateControlCodeDomTreeGenerator.cs (3)
301
attrArgs.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(arg.Value)));
305
attrArgs.Add(new
CodeAttributeArgument
(arg.MemberName, new CodePrimitiveExpression(arg.TypedValue.Value)));
313
new
CodeAttributeArgument
(new CodePrimitiveExpression(p.DefaultValue)));
Compilation\UserControlCodeDomTreeGenerator.cs (7)
36
CodeAttributeArgument attribArg = new
CodeAttributeArgument
(
39
attribArg = new
CodeAttributeArgument
(new CodePrimitiveExpression(cacheSettings.VaryByParam));
41
attribArg = new
CodeAttributeArgument
(new CodePrimitiveExpression(cacheSettings.VaryByControl));
43
attribArg = new
CodeAttributeArgument
(new CodePrimitiveExpression(cacheSettings.VaryByCustom));
45
attribArg = new
CodeAttributeArgument
(new CodePrimitiveExpression(cacheSettings.SqlDependency));
47
attribArg = new
CodeAttributeArgument
(new CodePrimitiveExpression(Parser.FSharedPartialCaching));
51
attribArg = new
CodeAttributeArgument
("ProviderName", new CodePrimitiveExpression(Parser.Provider));
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
699
new
CodeAttributeArgument
(new CodePrimitiveExpression(_strongNameKeyFileName))});
710
new
CodeAttributeArgument
(new CodePrimitiveExpression(ThisAssembly.Version))});
System.Web.Services (9)
System\Web\Services\Description\SoapProtocolImporter.cs (4)
445
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new
CodeAttributeArgument
(new CodePrimitiveExpression("code")) }));
450
webService.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(targetNs)));
455
attribute.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(XmlConvert.DecodeName(Binding.Name))));
456
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(Binding.ServiceDescription.TargetNamespace)));
System\Web\Services\Description\WebCodeGenerator.cs (5)
50
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
52
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
249
arguments[i] = new
CodeAttributeArgument
(null, parameters[i]);
252
arguments[parameters.Length + i] = new
CodeAttributeArgument
(propNames[i], propValues[i]);
356
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new
CodeAttributeArgument
(new CodePrimitiveExpression("code")) }));
System.Workflow.Activities (4)
WebServiceReceive.cs (4)
760
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new
CodeAttributeArgument
("ConformsTo", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new
CodeAttributeArgument
("EmitConformanceClaims", new CodePrimitiveExpression(true)));
793
attrDecl.Arguments.Add(new
CodeAttributeArgument
("Description", new CodePrimitiveExpression(methodInfo.Name)));
794
attrDecl.Arguments.Add(new
CodeAttributeArgument
("EnableSession", new CodePrimitiveExpression(false)));
System.Workflow.ComponentModel (2)
Shared\XomlSerializationHelpers.cs (2)
290
xomlSourceAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(filePath)));
291
xomlSourceAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(checksum)));
System.Xml (44)
System\Xml\Serialization\CodeExporter.cs (10)
107
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
109
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
173
include.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(derived.TypeDesc.FullName)));
183
include.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(arrayMapping.TypeDesc.FullName)));
238
attribute.Arguments.Add(new
CodeAttributeArgument
("AnonymousType", new CodePrimitiveExpression(true)));
242
attribute.Arguments.Add(new
CodeAttributeArgument
("TypeName", new CodePrimitiveExpression(name)));
246
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
249
attribute.Arguments.Add(new
CodeAttributeArgument
("IncludeInSchema", new CodePrimitiveExpression(false)));
261
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(derived.TypeDesc.FullName)));
275
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(constant.XmlName)));
System\Xml\Serialization\SoapCodeExporter.cs (4)
112
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] {new
CodeAttributeArgument
(new CodePrimitiveExpression("code"))}));
196
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(elementName)));
199
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name)));
202
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(true)));
System\Xml\Serialization\XmlCodeExporter.cs (30)
148
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] {new
CodeAttributeArgument
(new CodePrimitiveExpression("code"))}));
176
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(name)));
179
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
182
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name)));
185
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable)));
220
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(valueExpression)};
228
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(valueExpression)};
237
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression)};
250
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression)};
271
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression)};
277
arguments = new CodeAttributeArgument[] {new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression)};
694
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(member.ChoiceIdentifier.MemberName)));
751
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(typeDesc.FullName)));
754
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataType)));
778
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(name)));
782
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression("System.Nullable`1[" + typeDesc.FullName + "]")));
786
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(typeDesc.FullName)));
790
attribute.Arguments.Add(new
CodeAttributeArgument
("Form", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(XmlSchemaForm).FullName), Enum.Format(typeof(XmlSchemaForm), form, "G"))));
797
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
800
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name)));
803
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)isNullable)));
806
attribute.Arguments.Add(new
CodeAttributeArgument
("NestingLevel", new CodePrimitiveExpression(nestingLevel)));
809
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
818
attribute.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(name)));
821
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
824
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
82
new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)),
83
new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
197
new
CodeAttributeArgument
(new CodePrimitiveExpression(false)));
224
arguments[i] = new
CodeAttributeArgument
(GetCodeExpressionForAttributeArgument(attrib, attrib.Parameters[i], classData));
228
arguments[i] = new
CodeAttributeArgument
(propertyEntry.Key, GetCodeExpressionForAttributeArgument(attrib, propertyEntry.Value, classData));
839
new
CodeAttributeArgument
(new CodePrimitiveExpression("Microsoft.Design")),
840
new
CodeAttributeArgument
(new CodePrimitiveExpression("CA1033"))
69 references to CodeAttributeArgument
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1468
CodeAttributeArgument
caa = new CodeAttributeArgument(cfre);
System (31)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
2607
private void OutputAttributeArgument(
CodeAttributeArgument
arg) {
3082
foreach (
CodeAttributeArgument
arg in current.Arguments) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (2)
646
protected override void OutputAttributeArgument(
CodeAttributeArgument
arg) {
688
foreach (
CodeAttributeArgument
arg in current.Arguments) {
compmod\system\codedom\CodeAttributeArgument.cs (3)
33
/// Initializes a new instance of <see cref='System.CodeDom.
CodeAttributeArgument
'/>.
41
/// Initializes a new instance of <see cref='System.CodeDom.
CodeAttributeArgument
'/> using the specified value.
50
/// Initializes a new instance of <see cref='System.CodeDom.
CodeAttributeArgument
'/> using the specified name and
compmod\system\codedom\CodeAttributeArgumentCollection.cs (18)
17
/// A collection that stores <see cref='System.CodeDom.
CodeAttributeArgument
'/> objects.
46
/// Initializes a new instance of <see cref='System.CodeDom.CodeAttributeArgumentCollection'/> containing any array of <see cref='System.CodeDom.
CodeAttributeArgument
'/> objects.
49
public CodeAttributeArgumentCollection(
CodeAttributeArgument
[] value) {
54
/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.
CodeAttributeArgument
'/>.</para>
56
public
CodeAttributeArgument
this[int index] {
58
return ((
CodeAttributeArgument
)(List[index]));
66
/// <para>Adds a <see cref='System.CodeDom.
CodeAttributeArgument
'/> with the specified value to the
69
public int Add(
CodeAttributeArgument
value) {
76
public void AddRange(
CodeAttributeArgument
[] value) {
102
/// <see cref='System.CodeDom.CodeAttributeArgumentCollection'/> contains the specified <see cref='System.CodeDom.
CodeAttributeArgument
'/>.</para>
104
public bool Contains(
CodeAttributeArgument
value) {
112
public void CopyTo(
CodeAttributeArgument
[] array, int index) {
117
/// <para>Returns the index of a <see cref='System.CodeDom.
CodeAttributeArgument
'/> in
120
public int IndexOf(
CodeAttributeArgument
value) {
125
/// <para>Inserts a <see cref='System.CodeDom.
CodeAttributeArgument
'/> into the <see cref='System.CodeDom.CodeAttributeArgumentCollection'/> at the specified index.</para>
127
public void Insert(int index,
CodeAttributeArgument
value) {
132
/// <para> Removes a specific <see cref='System.CodeDom.
CodeAttributeArgument
'/> from the
135
public void Remove(
CodeAttributeArgument
value) {
compmod\system\codedom\CodeAttributeDeclaration.cs (2)
57
public CodeAttributeDeclaration(string name, params
CodeAttributeArgument
[] arguments) {
65
public CodeAttributeDeclaration(CodeTypeReference attributeType, params
CodeAttributeArgument
[] arguments) {
compmod\system\codedom\compiler\CodeGenerator.cs (2)
994
foreach (
CodeAttributeArgument
arg in current.Arguments) {
1017
protected virtual void OutputAttributeArgument(
CodeAttributeArgument
arg) {
compmod\system\codedom\compiler\CodeValidator.cs (2)
153
foreach (
CodeAttributeArgument
arg in current.Arguments) {
159
private void ValidateAttributeArgument(
CodeAttributeArgument
arg) {
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1548
return new CodeAttributeDeclaration(name, new
CodeAttributeArgument
[] { new CodeAttributeArgument(value) });
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
375
CodeAttributeArgument
viewGenTypeArgument = new CodeAttributeArgument(viewGenTypeOfExpression);
System.Management (1)
WmiGenerator.cs (1)
91
private
CodeAttributeArgument
caa;
System.ServiceModel (6)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (3)
49
CodeAttributeArgument
attributeProperty = TryGetAttributeProperty(attribute, propertyName);
60
public static
CodeAttributeArgument
TryGetAttributeProperty(CodeAttributeDeclaration attribute, string propertyName)
67
foreach (
CodeAttributeArgument
argument in attribute.Arguments)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
256
CodeAttributeArgument
browsableAttributeValue = new CodeAttributeArgument(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
204
foreach (
CodeAttributeArgument
attrArg in dataContractAttributeDecl.Arguments)
System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
170
foreach (
CodeAttributeArgument
argument in include.Arguments)
System.Web (7)
Compilation\AssemblyBuilder.cs (1)
522
new
CodeAttributeArgument
[] {
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
462
new
CodeAttributeArgument
[] {
472
new
CodeAttributeArgument
[] {
Compilation\TemplateControlCodeDomTreeGenerator.cs (1)
299
var attrArgs = new List<
CodeAttributeArgument
>();
Compilation\UserControlCodeDomTreeGenerator.cs (1)
36
CodeAttributeArgument
attribArg = new CodeAttributeArgument(
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
698
new
CodeAttributeArgument
[] {
709
new
CodeAttributeArgument
[] {
System.Web.Extensions (1)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (1)
1689
foreach (
CodeAttributeArgument
argument in codeAttribute.Arguments)
System.Web.Services (5)
System\Web\Services\Description\SoapProtocolImporter.cs (1)
445
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new
CodeAttributeArgument
[] { new CodeAttributeArgument(new CodePrimitiveExpression("code")) }));
System\Web\Services\Description\WebCodeGenerator.cs (4)
232
internal static CodeAttributeDeclarationCollection AddCustomAttribute(CodeAttributeDeclarationCollection metadata, Type type,
CodeAttributeArgument
[] arguments) {
246
CodeAttributeArgument
[] arguments = new
CodeAttributeArgument
[count];
356
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new
CodeAttributeArgument
[] { new CodeAttributeArgument(new CodePrimitiveExpression("code")) }));
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\Helper.cs (1)
160
foreach (
CodeAttributeArgument
codeArgument in codeAttribute.Arguments)
System.Xml (11)
System\Xml\Serialization\SoapCodeExporter.cs (1)
112
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new
CodeAttributeArgument
[] {new CodeAttributeArgument(new CodePrimitiveExpression("code"))}));
System\Xml\Serialization\XmlCodeExporter.cs (10)
148
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new
CodeAttributeArgument
[] {new CodeAttributeArgument(new CodePrimitiveExpression("code"))}));
190
CodeAttributeArgument
[] GetDefaultValueArguments(PrimitiveMapping mapping, object value, out CodeExpression initExpression) {
197
CodeAttributeArgument
[] arguments = null;
220
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(valueExpression)};
228
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(valueExpression)};
237
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression)};
250
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression)};
271
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression)};
277
arguments = new
CodeAttributeArgument
[] {new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression)};
436
CodeAttributeArgument
[] arguments = null;
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
220
CodeAttributeArgument
[] arguments = new
CodeAttributeArgument
[attrib.Parameters.Count + attrib.Properties.Count];
838
CodeAttributeArgument
[] suppressMessageArguments = {