93 references to 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 (2)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
375
CodeAttributeArgument viewGenTypeArgument = new
CodeAttributeArgument
(viewGenTypeOfExpression);
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
349
attribute.Arguments.Add(new
CodeAttributeArgument
(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.Runtime.Serialization (6)
System\Runtime\Serialization\CodeExporter.cs (6)
519
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
520
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
1016
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract))));
1277
new
CodeAttributeArgument
(NullReference),
1285
new
CodeAttributeArgument
(new CodePrimitiveExpression(Globals.ExportSchemaMethod)))
1345
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(dataContractNamespace)));
System.ServiceModel (6)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
256
CodeAttributeArgument browsableAttributeValue = new
CodeAttributeArgument
(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
112
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(knownTypeReference)));
System\ServiceModel\Description\ServiceContractGenerator.cs (4)
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)));
880
attrDecl.Arguments.Add(new
CodeAttributeArgument
(ServiceContractGenerator.GetEnumReference<TransactionFlowOption>(attr.Transactions)));
System.Web (22)
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 (2)
301
attrArgs.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(arg.Value)));
313
new
CodeAttributeArgument
(new CodePrimitiveExpression(p.DefaultValue)));
Compilation\UserControlCodeDomTreeGenerator.cs (6)
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));
Configuration\BrowserCapabilitiesCodeGenerator.cs (2)
699
new
CodeAttributeArgument
(new CodePrimitiveExpression(_strongNameKeyFileName))});
710
new
CodeAttributeArgument
(new CodePrimitiveExpression(ThisAssembly.Version))});
System.Web.Services (4)
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 (3)
50
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
52
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
356
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new
CodeAttributeArgument
(new CodePrimitiveExpression("code")) }));
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 (25)
System\Xml\Serialization\CodeExporter.cs (6)
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)));
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 (2)
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)));
System\Xml\Serialization\XmlCodeExporter.cs (17)
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)));
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)));
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)));
XamlBuildTask (6)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (6)
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));
839
new
CodeAttributeArgument
(new CodePrimitiveExpression("Microsoft.Design")),
840
new
CodeAttributeArgument
(new CodePrimitiveExpression("CA1033"))