159 references to CodePrimitiveExpression
dotnet-svcutil-lib (159)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (5)
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)));
262
new CodeObjectCreateExpression(new CodeTypeReference(xelementType), new
CodePrimitiveExpression
("default")));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (2)
88
new
CodePrimitiveExpression
(null),
89
new
CodePrimitiveExpression
(null),
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)));
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (8)
269
new
CodePrimitiveExpression
(null),
270
new
CodePrimitiveExpression
(false),
271
new
CodePrimitiveExpression
(null)
277
new
CodePrimitiveExpression
(null),
278
new
CodePrimitiveExpression
(false),
279
new
CodePrimitiveExpression
(null)
299
Condition = new CodeBinaryOperatorExpression(completedEvent, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null)),
382
CodeCastExpression castExpr = new CodeCastExpression(param.Type, new CodeArrayIndexerExpression(resultsFieldReference, new
CodePrimitiveExpression
(paramIndex)));
CodeDomFixup\MethodCreationHelper.cs (47)
291
new
CodePrimitiveExpression
(true)));
312
new
CodePrimitiveExpression
(wsHttp.TransactionFlow)));
324
new
CodePrimitiveExpression
(wsHttp.ReliableSession.Enabled)));
330
new
CodePrimitiveExpression
(wsHttp.ReliableSession.Ordered)));
389
new
CodePrimitiveExpression
(wsHttp.Security.Message.EstablishSecurityContext)));
432
new
CodePrimitiveExpression
(true)));
453
new
CodePrimitiveExpression
(ws2007Http.TransactionFlow)));
465
new
CodePrimitiveExpression
(ws2007Http.ReliableSession.Enabled)));
471
new
CodePrimitiveExpression
(ws2007Http.ReliableSession.Ordered)));
530
new
CodePrimitiveExpression
(ws2007Http.Security.Message.EstablishSecurityContext)));
601
new
CodePrimitiveExpression
(wsFedHttp.Security.Message.IssuerAddress.ToString())))));
638
new
CodePrimitiveExpression
(true)));
659
new
CodePrimitiveExpression
(wsFedHttp.TransactionFlow)));
671
new
CodePrimitiveExpression
(wsFedHttp.ReliableSession.Enabled)));
677
new
CodePrimitiveExpression
(wsFedHttp.ReliableSession.Ordered)));
683
new
CodePrimitiveExpression
(wsFedHttp.ReliableSession.InactivityTimeout)));
708
new
CodePrimitiveExpression
(wsFedHttp.Security.Message.EstablishSecurityContext)));
720
new
CodePrimitiveExpression
(wsFedHttp.Security.Message.EstablishSecurityContext)));
805
new
CodePrimitiveExpression
(ws2007FedHttp.Security.Message.IssuerAddress.ToString())))));
842
new
CodePrimitiveExpression
(true)));
863
new
CodePrimitiveExpression
(ws2007FedHttp.TransactionFlow)));
875
new
CodePrimitiveExpression
(ws2007FedHttp.ReliableSession.Enabled)));
881
new
CodePrimitiveExpression
(ws2007FedHttp.ReliableSession.Ordered)));
887
new
CodePrimitiveExpression
(ws2007FedHttp.ReliableSession.InactivityTimeout)));
912
new
CodePrimitiveExpression
(ws2007FedHttp.Security.Message.EstablishSecurityContext)));
924
new
CodePrimitiveExpression
(ws2007FedHttp.Security.Message.EstablishSecurityContext)));
1136
new
CodePrimitiveExpression
(bindingElement.IncludeTimestamp)));
1243
new
CodePrimitiveExpression
(bindingElement.ConnectionBufferSize)));
1253
new
CodePrimitiveExpression
(bindingElement.ConnectionPoolSettings.GroupName)));
1263
new
CodePrimitiveExpression
(bindingElement.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint)));
1338
new
CodePrimitiveExpression
(bindingElement.ConnectionBufferSize)));
1352
return new CodeObjectCreateExpression(typeof(TimeSpan), new
CodePrimitiveExpression
(value.Ticks));
1373
new
CodePrimitiveExpression
(true)));
1533
new
CodePrimitiveExpression
(bindingElement.Ordered)));
1553
new
CodePrimitiveExpression
(bindingElement.FlowControlEnabled)));
1573
new
CodePrimitiveExpression
(bindingElement.MaxPendingChannels)));
1583
new
CodePrimitiveExpression
(bindingElement.MaxRetryCount)));
1593
new
CodePrimitiveExpression
(bindingElement.MaxTransferWindowSize)));
1738
new
CodePrimitiveExpression
(netTcp.ReliableSession.Enabled)));
1917
new
CodePrimitiveExpression
(true)));
2012
new
CodePrimitiveExpression
(true)));
2057
new
CodePrimitiveExpression
(netHttp.ReliableSession.Enabled)));
2142
createIdentityExpression = new CodeObjectCreateExpression(identity.GetType(), new
CodePrimitiveExpression
(identity.IdentityClaim.Resource));
2151
new
CodePrimitiveExpression
(endpointAddress)),
2158
new
CodePrimitiveExpression
(endpointAddress));
2218
new
CodePrimitiveExpression
(SR.CodeExpressionCouldNotFindEndpoint),
2228
new
CodePrimitiveExpression
(SR.CodeExpressionCouldNotFindEndpoint),
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)));
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)));
311
field.InitExpression = new
CodePrimitiveExpression
(enumValue);
316
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(constant.XmlName)));
370
prop.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new
CodePrimitiveExpression
(name)));
413
CodeConditionStatement ifStatement = new CodeConditionStatement(new CodeBinaryOperatorExpression(propertyChanged, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null)));
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 (23)
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)));
253
initExpression = valueExpression = new
CodePrimitiveExpression
(value);
262
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
265
initExpression = new CodeCastExpression(type.FullName, new
CodePrimitiveExpression
(value));
276
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
279
initExpression = new CodeCastExpression(type.FullName, new
CodePrimitiveExpression
(value));
301
valueExpression = new
CodePrimitiveExpression
(dtString);
304
initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] { new
CodePrimitiveExpression
(ticks) });
308
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
798
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(member.ChoiceIdentifier.MemberName)));
866
attribute.Arguments.Add(new CodeAttributeArgument("DataType", new
CodePrimitiveExpression
(dataType)));
896
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(name)));
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 (31)
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)));
1075
dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new
CodePrimitiveExpression
(dataContractName)));
1076
dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new
CodePrimitiveExpression
(enumDataContract.StableName.Namespace)));
1091
enumMember.InitExpression = new
CodePrimitiveExpression
(longValue);
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))));
1210
new CodeAttributeArgument(Globals.IsAnyProperty, new
CodePrimitiveExpression
(true)))
1217
new CodeAttributeArgument(new
CodePrimitiveExpression
(Globals.ExportSchemaMethod)))
1225
typeNameField.InitExpression = new CodeObjectCreateExpression(Globals.TypeOfXmlQualifiedName, new
CodePrimitiveExpression
(typeName.Name), new
CodePrimitiveExpression
(typeName.Namespace));
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)));
1557
get { return new
CodePrimitiveExpression
(null); }
1766
right = new
CodePrimitiveExpression
(true);
1769
ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new
CodePrimitiveExpression
(propertyName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (2)
42
new
CodePrimitiveExpression
(((TimeSpan)(object)value).Ticks));
48
newValue = new
CodePrimitiveExpression
((object)value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (8)
553
new CodeArrayIndexerExpression(resultsFieldReference, new
CodePrimitiveExpression
(count++)));
565
new
CodePrimitiveExpression
(count)));
674
new CodeArrayIndexerExpression(inValuesRef, new
CodePrimitiveExpression
(i)));
761
onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
827
new
CodePrimitiveExpression
(null)),
876
invokeAsync.Parameters.Add(new
CodePrimitiveExpression
(null));
907
invokeEventAsyncMethod.Parameters.Add(new
CodePrimitiveExpression
(null));
925
new
CodePrimitiveExpression
(null)),
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
214
dataContractAttributeDecl.Arguments.Add(new CodeAttributeArgument("Namespace", new
CodePrimitiveExpression
(part.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (5)
783
new
CodePrimitiveExpression
(NamingHelper.CodeName(message.Body.WrapperName))));
785
new
CodePrimitiveExpression
(message.Body.WrapperNamespace)));
787
new
CodePrimitiveExpression
(true)));
791
new
CodePrimitiveExpression
(false)));
1026
return new
CodePrimitiveExpression
(val);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (12)
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)));
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)));
500
generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Name)));
501
generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Version.ToString())));
610
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Action", new
CodePrimitiveExpression
(fault.Action)));
620
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new
CodePrimitiveExpression
(fault.ElementName.EncodedName)));
622
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new
CodePrimitiveExpression
(fault.Namespace)));