145 references to Arguments
System (6)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
3082
foreach (CodeAttributeArgument arg in current.
Arguments
) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
688
foreach (CodeAttributeArgument arg in current.
Arguments
) {
compmod\system\codedom\CodeAttributeDeclaration.cs (2)
59
Arguments
.AddRange(arguments);
72
Arguments
.AddRange(arguments);
compmod\system\codedom\compiler\CodeGenerator.cs (1)
994
foreach (CodeAttributeArgument arg in current.
Arguments
) {
compmod\system\codedom\compiler\CodeValidator.cs (1)
153
foreach (CodeAttributeArgument arg in current.
Arguments
) {
System.Data.Entity.Design (3)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
376
viewGenAttribute.
Arguments
.Add(viewGenTypeArgument);
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 (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
159
attribute.
Arguments
.Add(new CodeAttributeArgument(expression));
System.Management (20)
WmiGenerator.cs (20)
981
cad.
Arguments
.Add(caa);
989
cad.
Arguments
.Add(caa);
1023
cad.
Arguments
.Add(caa);
1035
cad.
Arguments
.Add(caa);
1062
cad.
Arguments
.Add(caa);
1146
cad.
Arguments
.Add(caa);
1161
cad.
Arguments
.Add(caa);
1265
cad.
Arguments
.Add(caa);
1273
cad.
Arguments
.Add(caa);
1282
cad.
Arguments
.Add(caa);
1307
cad.
Arguments
.Add(caa);
1353
cad.
Arguments
.Add(caa);
5057
cad.
Arguments
.Add(caa);
5091
cad.
Arguments
.Add(caa);
5428
cad.
Arguments
.Add(caa);
5436
cad.
Arguments
.Add(caa);
6079
cad.
Arguments
.Add(caa);
6091
cad.
Arguments
.Add(caa);
6305
cad.
Arguments
.Add(caa);
6384
cad.
Arguments
.Add(caa);
System.Runtime.Serialization (24)
System\Runtime\Serialization\CodeExporter.cs (24)
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))));
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 (34)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (2)
54
attribute.
Arguments
.Add(attributeProperty);
67
foreach (CodeAttributeArgument argument in attribute.
Arguments
)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
257
browsableAttribute.
Arguments
.Add(browsableAttributeValue);
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (3)
112
knownTypeAttribute.
Arguments
.Add(new CodeAttributeArgument(new CodeTypeOfExpression(knownTypeReference)));
204
foreach (CodeAttributeArgument attrArg in dataContractAttributeDecl.
Arguments
)
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\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
170
foreach (CodeAttributeArgument argument in include.
Arguments
)
172
knownType.
Arguments
.Add(argument);
System.Web (10)
Compilation\AssemblyBuilder.cs (2)
533
declaration.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression("ASP.NET")));
534
declaration.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression(VersionInfo.SystemWebVersion)));
Compilation\BaseCodeDomTreeGenerator.cs (1)
174
editorBrowsableAttribute.
Arguments
.Add(new CodeAttributeArgument(new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(EditorBrowsableState)), "Never")));
Compilation\UserControlCodeDomTreeGenerator.cs (7)
38
attribDecl.
Arguments
.Add(attribArg);
40
attribDecl.
Arguments
.Add(attribArg);
42
attribDecl.
Arguments
.Add(attribArg);
44
attribDecl.
Arguments
.Add(attribArg);
46
attribDecl.
Arguments
.Add(attribArg);
48
attribDecl.
Arguments
.Add(attribArg);
52
attribDecl.
Arguments
.Add(attribArg);
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 (3)
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 (2)
50
decl.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name)));
52
decl.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
System.Workflow.Activities (2)
WebServiceReceive.cs (2)
793
attrDecl.
Arguments
.Add(new CodeAttributeArgument("Description", new CodePrimitiveExpression(methodInfo.Name)));
794
attrDecl.
Arguments
.Add(new CodeAttributeArgument("EnableSession", new CodePrimitiveExpression(false)));
System.Workflow.ComponentModel (5)
AuthoringOM\Compiler\TypeSystem\Helper.cs (3)
150
String[] argumentNames = new String[codeAttribute.
Arguments
.Count];
151
object[] argumentValues = new object[codeAttribute.
Arguments
.Count];
160
foreach (CodeAttributeArgument codeArgument in codeAttribute.
Arguments
)
Shared\XomlSerializationHelpers.cs (2)
290
xomlSourceAttribute.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression(filePath)));
291
xomlSourceAttribute.
Arguments
.Add(new CodeAttributeArgument(new CodePrimitiveExpression(checksum)));
System.Xml (34)
System\Xml\Serialization\CodeExporter.cs (11)
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)));
251
if (attribute.
Arguments
.Count > 0) {
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 (3)
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 (20)
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)));
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)));
811
if (attribute.
Arguments
.Count == 0 && attributeType == typeof(XmlElementAttribute)) return;
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)));