159 references to CodePrimitiveExpression
dotnet-svcutil-lib (159)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (5)
90generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 91generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString()))); 138new CodeAttributeArgument(new CodePrimitiveExpression(null)), 139new CodeAttributeArgument("IsAny", new CodePrimitiveExpression(true))); 262new CodeObjectCreateExpression(new CodeTypeReference(xelementType), new CodePrimitiveExpression("default")));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (2)
88new CodePrimitiveExpression(null), 89new CodePrimitiveExpression(null),
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (2)
78attr.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(Tool.ToolName))); 79attr.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(Tool.PackageVersion)));
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (8)
269new CodePrimitiveExpression(null), 270new CodePrimitiveExpression(false), 271new CodePrimitiveExpression(null) 277new CodePrimitiveExpression(null), 278new CodePrimitiveExpression(false), 279new CodePrimitiveExpression(null) 299Condition = new CodeBinaryOperatorExpression(completedEvent, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)), 382CodeCastExpression castExpr = new CodeCastExpression(param.Type, new CodeArrayIndexerExpression(resultsFieldReference, new CodePrimitiveExpression(paramIndex)));
CodeDomFixup\MethodCreationHelper.cs (47)
291new CodePrimitiveExpression(true))); 312new CodePrimitiveExpression(wsHttp.TransactionFlow))); 324new CodePrimitiveExpression(wsHttp.ReliableSession.Enabled))); 330new CodePrimitiveExpression(wsHttp.ReliableSession.Ordered))); 389new CodePrimitiveExpression(wsHttp.Security.Message.EstablishSecurityContext))); 432new CodePrimitiveExpression(true))); 453new CodePrimitiveExpression(ws2007Http.TransactionFlow))); 465new CodePrimitiveExpression(ws2007Http.ReliableSession.Enabled))); 471new CodePrimitiveExpression(ws2007Http.ReliableSession.Ordered))); 530new CodePrimitiveExpression(ws2007Http.Security.Message.EstablishSecurityContext))); 601new CodePrimitiveExpression(wsFedHttp.Security.Message.IssuerAddress.ToString()))))); 638new CodePrimitiveExpression(true))); 659new CodePrimitiveExpression(wsFedHttp.TransactionFlow))); 671new CodePrimitiveExpression(wsFedHttp.ReliableSession.Enabled))); 677new CodePrimitiveExpression(wsFedHttp.ReliableSession.Ordered))); 683new CodePrimitiveExpression(wsFedHttp.ReliableSession.InactivityTimeout))); 708new CodePrimitiveExpression(wsFedHttp.Security.Message.EstablishSecurityContext))); 720new CodePrimitiveExpression(wsFedHttp.Security.Message.EstablishSecurityContext))); 805new CodePrimitiveExpression(ws2007FedHttp.Security.Message.IssuerAddress.ToString()))))); 842new CodePrimitiveExpression(true))); 863new CodePrimitiveExpression(ws2007FedHttp.TransactionFlow))); 875new CodePrimitiveExpression(ws2007FedHttp.ReliableSession.Enabled))); 881new CodePrimitiveExpression(ws2007FedHttp.ReliableSession.Ordered))); 887new CodePrimitiveExpression(ws2007FedHttp.ReliableSession.InactivityTimeout))); 912new CodePrimitiveExpression(ws2007FedHttp.Security.Message.EstablishSecurityContext))); 924new CodePrimitiveExpression(ws2007FedHttp.Security.Message.EstablishSecurityContext))); 1136new CodePrimitiveExpression(bindingElement.IncludeTimestamp))); 1243new CodePrimitiveExpression(bindingElement.ConnectionBufferSize))); 1253new CodePrimitiveExpression(bindingElement.ConnectionPoolSettings.GroupName))); 1263new CodePrimitiveExpression(bindingElement.ConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint))); 1338new CodePrimitiveExpression(bindingElement.ConnectionBufferSize))); 1352return new CodeObjectCreateExpression(typeof(TimeSpan), new CodePrimitiveExpression(value.Ticks)); 1373new CodePrimitiveExpression(true))); 1533new CodePrimitiveExpression(bindingElement.Ordered))); 1553new CodePrimitiveExpression(bindingElement.FlowControlEnabled))); 1573new CodePrimitiveExpression(bindingElement.MaxPendingChannels))); 1583new CodePrimitiveExpression(bindingElement.MaxRetryCount))); 1593new CodePrimitiveExpression(bindingElement.MaxTransferWindowSize))); 1738new CodePrimitiveExpression(netTcp.ReliableSession.Enabled))); 1917new CodePrimitiveExpression(true))); 2012new CodePrimitiveExpression(true))); 2057new CodePrimitiveExpression(netHttp.ReliableSession.Enabled))); 2142createIdentityExpression = new CodeObjectCreateExpression(identity.GetType(), new CodePrimitiveExpression(identity.IdentityClaim.Resource)); 2151new CodePrimitiveExpression(endpointAddress)), 2158new CodePrimitiveExpression(endpointAddress)); 2218new CodePrimitiveExpression(SR.CodeExpressionCouldNotFindEndpoint), 2228new CodePrimitiveExpression(SR.CodeExpressionCouldNotFindEndpoint),
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (10)
111decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 113decl.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(version == null ? assemblyName.Version.ToString() : version))); 270attribute.Arguments.Add(new CodeAttributeArgument("AnonymousType", new CodePrimitiveExpression(true))); 276attribute.Arguments.Add(new CodeAttributeArgument("TypeName", new CodePrimitiveExpression(name))); 281attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 285attribute.Arguments.Add(new CodeAttributeArgument("IncludeInSchema", new CodePrimitiveExpression(false))); 311field.InitExpression = new CodePrimitiveExpression(enumValue); 316attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(constant.XmlName))); 370prop.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(name))); 413CodeConditionStatement ifStatement = new CodeConditionStatement(new CodeBinaryOperatorExpression(propertyChanged, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (3)
211attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(elementName))); 215attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name))); 219attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(true)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (23)
194attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(name))); 198attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 202attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name))); 206attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable))); 253initExpression = valueExpression = new CodePrimitiveExpression(value); 262valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 265initExpression = new CodeCastExpression(type.FullName, new CodePrimitiveExpression(value)); 276valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 279initExpression = new CodeCastExpression(type.FullName, new CodePrimitiveExpression(value)); 301valueExpression = new CodePrimitiveExpression(dtString); 304initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] { new CodePrimitiveExpression(ticks) }); 308valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 798attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(member.ChoiceIdentifier.MemberName))); 866attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(dataType))); 896attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(name))); 921attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 925attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name))); 929attribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression((bool)isNullable))); 933attribute.Arguments.Add(new CodeAttributeArgument("NestingLevel", new CodePrimitiveExpression(nestingLevel))); 937attribute.Arguments.Add(new CodeAttributeArgument("Order", new CodePrimitiveExpression(sequenceId))); 948attribute.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(name))); 952attribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(ns))); 956attribute.Arguments.Add(new CodeAttributeArgument("Order", new CodePrimitiveExpression(sequenceId)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (31)
514generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 515generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString()))); 816dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 817dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace))); 819dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference))); 882dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataMemberName))); 884dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired))); 886dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue))); 888dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.OrderProperty, new CodePrimitiveExpression(dataMember.Order))); 1075dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1076dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace))); 1091enumMember.InitExpression = new CodePrimitiveExpression(longValue); 1095enumMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ValueProperty, new CodePrimitiveExpression(stringValue))); 1165collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new CodePrimitiveExpression(dataContractName))); 1166collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace))); 1168collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference))); 1169collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ItemName)))); 1172collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.KeyName)))); 1173collectionContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ValueName)))); 1210new CodeAttributeArgument(Globals.IsAnyProperty, new CodePrimitiveExpression(true))) 1217new CodeAttributeArgument(new CodePrimitiveExpression(Globals.ExportSchemaMethod))) 1225typeNameField.InitExpression = new CodeObjectCreateExpression(Globals.TypeOfXmlQualifiedName, new CodePrimitiveExpression(typeName.Name), new CodePrimitiveExpression(typeName.Namespace)); 1240xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value))); 1244xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value))); 1248xmlRootAttribute.Arguments.Add(new CodeAttributeArgument("IsNullable", new CodePrimitiveExpression(false))); 1277namespaceAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(dataContractNamespace))); 1278namespaceAttribute.Arguments.Add(new CodeAttributeArgument(Globals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace))); 1557get { return new CodePrimitiveExpression(null); } 1766right = new CodePrimitiveExpression(true); 1769ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (2)
42new CodePrimitiveExpression(((TimeSpan)(object)value).Ticks)); 48newValue = new CodePrimitiveExpression((object)value);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (8)
553new CodeArrayIndexerExpression(resultsFieldReference, new CodePrimitiveExpression(count++))); 565new CodePrimitiveExpression(count))); 674new CodeArrayIndexerExpression(inValuesRef, new CodePrimitiveExpression(i))); 761onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 827new CodePrimitiveExpression(null)), 876invokeAsync.Parameters.Add(new CodePrimitiveExpression(null)); 907invokeEventAsyncMethod.Parameters.Add(new CodePrimitiveExpression(null)); 925new CodePrimitiveExpression(null)),
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
214dataContractAttributeDecl.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(part.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (5)
783new CodePrimitiveExpression(NamingHelper.CodeName(message.Body.WrapperName)))); 785new CodePrimitiveExpression(message.Body.WrapperNamespace))); 787new CodePrimitiveExpression(true))); 791new CodePrimitiveExpression(false))); 1026return new CodePrimitiveExpression(val);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (12)
350serviceContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(friendlyName))); 354serviceContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(context.Contract.Namespace))); 356serviceContractAttr.Arguments.Add(new CodeAttributeArgument("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType))); 401serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsOneWay", new CodePrimitiveExpression(true))); 405serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsTerminating", new CodePrimitiveExpression(true))); 409serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("IsInitiating", new CodePrimitiveExpression(false))); 413serviceOperationAttr.Arguments.Add(new CodeAttributeArgument("AsyncPattern", new CodePrimitiveExpression(true))); 500generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Name))); 501generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(assemblyName.Version.ToString()))); 610faultContractAttr.Arguments.Add(new CodeAttributeArgument("Action", new CodePrimitiveExpression(fault.Action))); 620faultContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new CodePrimitiveExpression(fault.ElementName.EncodedName))); 622faultContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new CodePrimitiveExpression(fault.Namespace)));