105 instantiations of CodeAttributeArgument
dotnet-svcutil-lib (105)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (4)
90
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
91
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
138
new
CodeAttributeArgument
(new CodePrimitiveExpression(null)),
139
new
CodeAttributeArgument
("IsAny", new CodePrimitiveExpression(true)));
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (2)
78
attr.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(Tool.ToolName)));
79
attr.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(Tool.PackageVersion)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (10)
111
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
113
decl.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version)));
192
include.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(derived.TypeDesc.FullName)));
205
include.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(arrayMapping.TypeDesc.FullName)));
270
attribute.Arguments.Add(new
CodeAttributeArgument
("AnonymousType", new CodePrimitiveExpression(true)));
276
attribute.Arguments.Add(new
CodeAttributeArgument
("TypeName", new CodePrimitiveExpression(name)));
281
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
285
attribute.Arguments.Add(new
CodeAttributeArgument
("IncludeInSchema", new CodePrimitiveExpression(false)));
300
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(derived.TypeDesc.FullName)));
316
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(constant.XmlName)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
211
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(elementName)));
215
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name)));
219
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(true)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (29)
194
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(name)));
198
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
202
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name)));
206
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable)));
246
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(valueExpression) };
254
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(valueExpression) };
264
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression) };
278
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression) };
303
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression) };
310
arguments = new CodeAttributeArgument[] { new
CodeAttributeArgument
(typeofValue), new
CodeAttributeArgument
(valueExpression) };
798
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(member.ChoiceIdentifier.MemberName)));
862
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(typeDesc.FullName)));
866
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataType)));
896
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(name)));
902
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression("System.Nullable`1[" + typeDesc.FullName + "]")));
907
attribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(typeDesc.FullName)));
912
attribute.Arguments.Add(new
CodeAttributeArgument
("Form", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(XmlSchemaForm).FullName), Enum.Format(typeof(XmlSchemaForm), form, "G"))));
921
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
925
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name)));
929
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)isNullable)));
933
attribute.Arguments.Add(new
CodeAttributeArgument
("NestingLevel", new CodePrimitiveExpression(nestingLevel)));
937
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
948
attribute.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(name)));
952
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
956
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (27)
514
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
515
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
816
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
817
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace)));
819
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference)));
882
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataMemberName)));
884
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired)));
886
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue)));
888
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.OrderProperty, new CodePrimitiveExpression(dataMember.Order)));
1003
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(GetCodeTypeReference(knownTypeContract))));
1075
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1076
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace)));
1095
enumMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueProperty, new CodePrimitiveExpression(stringValue)));
1165
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1166
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace)));
1168
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference)));
1169
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ItemName))));
1172
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.KeyName))));
1173
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ValueName))));
1209
new
CodeAttributeArgument
(NullReference),
1210
new
CodeAttributeArgument
(Globals.IsAnyProperty, new CodePrimitiveExpression(true)))
1217
new
CodeAttributeArgument
(new CodePrimitiveExpression(Globals.ExportSchemaMethod)))
1240
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value)));
1244
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value)));
1248
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(false)));
1277
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(dataContractNamespace)));
1278
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
54
attributeProperty = new
CodeAttributeArgument
(propertyName, newValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
256
CodeAttributeArgument browsableAttributeValue = new
CodeAttributeArgument
(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
112
knownTypeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(knownTypeReference)));
214
dataContractAttributeDecl.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(part.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (7)
770
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
782
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperName",
784
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperNamespace",
786
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
790
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
1005
attr.Arguments.Add(new
CodeAttributeArgument
(field.Name, GetArgValue(fieldValue)));
1014
attr.Arguments.Add(new
CodeAttributeArgument
(property.Name, GetArgValue(propertyValue)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (19)
350
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(friendlyName)));
354
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(context.Contract.Namespace)));
356
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType)));
360
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
367
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("CallbackContract", new CodeTypeOfExpression(context.DuplexCallbackTypeReference)));
372
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("SessionMode",
401
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsOneWay", new CodePrimitiveExpression(true)));
405
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsTerminating", new CodePrimitiveExpression(true)));
409
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsInitiating", new CodePrimitiveExpression(false)));
413
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("AsyncPattern", new CodePrimitiveExpression(true)));
417
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
500
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Name)));
501
generatedCodeAttribute.Arguments.Add(new
CodeAttributeArgument
(new CodePrimitiveExpression(assemblyName.Version.ToString())));
608
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
(new CodeTypeOfExpression(exceptionTypeReference)));
610
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Action", new CodePrimitiveExpression(fault.Action)));
613
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
620
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(fault.ElementName.EncodedName)));
622
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(fault.Namespace)));
825
attrDecl.Arguments.Add(new
CodeAttributeArgument
(ServiceContractGenerator.GetEnumReference<TransactionFlowOption>(attr.Transactions)));
52 references to CodeAttributeArgument
dotnet-svcutil-lib (52)
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (2)
84
CollectionHelpers.MapList<
CodeAttributeArgument
>(attr.Arguments,
85
delegate (
CodeAttributeArgument
arg)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
102
protected override void Visit(
CodeAttributeArgument
attrarg)
523
if (obj is
CodeAttributeArgument
)
524
Visit((
CodeAttributeArgument
)obj);
536
protected virtual void Visit(
CodeAttributeArgument
attrarg) { }
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
508
foreach (
CodeAttributeArgument
arg in serviceContractAttribute.Arguments)
534
foreach (
CodeAttributeArgument
arg in operationContractAttribute.Arguments)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1197
foreach (
CodeAttributeArgument
arg in current.Arguments)
1222
protected virtual void OutputAttributeArgument(
CodeAttributeArgument
arg)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (2)
187
foreach (
CodeAttributeArgument
arg in current.Arguments)
194
private void ValidateAttributeArgument(
CodeAttributeArgument
arg)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
2968
private void OutputAttributeArgument(
CodeAttributeArgument
arg)
3538
foreach (
CodeAttributeArgument
arg in current.Arguments)
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgument.cs (3)
30
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/>.
39
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> using the specified value.
49
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> using the specified name and
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeArgumentCollection.cs (18)
14
/// A collection that stores <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> objects.
45
/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeAttributeArgumentCollection'/> containing any array of <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> objects.
48
public CodeAttributeArgumentCollection(
CodeAttributeArgument
[] value)
54
/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/>.</para>
56
public
CodeAttributeArgument
this[int index]
60
return ((
CodeAttributeArgument
)(List[index]));
69
/// <para>Adds a <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> with the specified value to the
72
public int Add(
CodeAttributeArgument
value)
80
public void AddRange(
CodeAttributeArgument
[] value)
112
/// <see cref='Microsoft.CodeDom.CodeAttributeArgumentCollection'/> contains the specified <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/>.</para>
114
public bool Contains(
CodeAttributeArgument
value)
123
public void CopyTo(
CodeAttributeArgument
[] array, int index)
129
/// <para>Returns the index of a <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> in
132
public int IndexOf(
CodeAttributeArgument
value)
138
/// <para>Inserts a <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> into the <see cref='Microsoft.CodeDom.CodeAttributeArgumentCollection'/> at the specified index.</para>
140
public void Insert(int index,
CodeAttributeArgument
value)
146
/// <para> Removes a specific <see cref='Microsoft.CodeDom.
CodeAttributeArgument
'/> from the
149
public void Remove(
CodeAttributeArgument
value)
FrameworkFork\Microsoft.CodeDom\System\CodeAttributeDeclaration.cs (2)
55
public CodeAttributeDeclaration(string name, params
CodeAttributeArgument
[] arguments)
65
public CodeAttributeDeclaration(CodeTypeReference attributeType, params
CodeAttributeArgument
[] arguments)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (9)
211
private
CodeAttributeArgument
[] GetDefaultValueArguments(PrimitiveMapping mapping, object value, out CodeExpression initExpression)
219
CodeAttributeArgument
[] arguments = null;
246
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(valueExpression) };
254
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(valueExpression) };
264
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression) };
278
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression) };
303
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression) };
310
arguments = new
CodeAttributeArgument
[] { new CodeAttributeArgument(typeofValue), new CodeAttributeArgument(valueExpression) };
498
CodeAttributeArgument
[] arguments = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (3)
50
CodeAttributeArgument
attributeProperty = TryGetAttributeProperty(attribute, propertyName);
61
public static
CodeAttributeArgument
TryGetAttributeProperty(CodeAttributeDeclaration attribute, string propertyName)
68
foreach (
CodeAttributeArgument
argument in attribute.Arguments)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
256
CodeAttributeArgument
browsableAttributeValue = new CodeAttributeArgument(new CodeFieldReferenceExpression(browsableAttributeState, editorBrowsableState.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
203
foreach (
CodeAttributeArgument
attrArg in dataContractAttributeDecl.Arguments)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (1)
171
foreach (
CodeAttributeArgument
argument in include.Arguments)