775 instantiations of CodePrimitiveExpression
PresentationBuildTasks (26)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (26)
958
new
CodePrimitiveExpression
(connectionId));
1188
new
CodePrimitiveExpression
(connectionId));
1287
CodeAssignStatement casContentLoaded = new CodeAssignStatement(cfreContentLoaded, new
CodePrimitiveExpression
(true));
1476
new CodeAttributeArgument(new
CodePrimitiveExpression
(category)),
1477
new CodeAttributeArgument(new
CodePrimitiveExpression
(rule)));
1737
ce = new
CodePrimitiveExpression
(value);
1767
ce = new
CodePrimitiveExpression
(null);
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)));
2569
new
CodePrimitiveExpression
(true));
2602
CodeExpression[] uriParams = { new
CodePrimitiveExpression
(uriPart), cfreRelUri };
2704
cmieCI.Parameters.Add(new
CodePrimitiveExpression
(null));
2705
cmieCI.Parameters.Add(new
CodePrimitiveExpression
(null));
2733
cmieGPV.Parameters.Add(new
CodePrimitiveExpression
(null));
2734
cmieGPV.Parameters.Add(new
CodePrimitiveExpression
(null));
2762
cmieSPV.Parameters.Add(new
CodePrimitiveExpression
(null));
2763
cmieSPV.Parameters.Add(new
CodePrimitiveExpression
(null));
2800
cmieCD.Parameters.Add(new
CodePrimitiveExpression
(CREATEDELEGATEHELPER));
2807
cmieCD.Parameters.Add(new
CodePrimitiveExpression
(null));
2816
cmieCD.Parameters.Add(new
CodePrimitiveExpression
(null));
2867
new CodeAttributeArgument(new
CodePrimitiveExpression
(DefaultNamespace)));
3173
new CodeAttributeArgument(new
CodePrimitiveExpression
(normalized)));
3204
CodeObjectCreateExpression coceApplicationSplashScreen = new CodeObjectCreateExpression(SPLASHCLASSNAME, new
CodePrimitiveExpression
(GetSplashResourceId()));
3211
CodeMethodInvokeExpression cmieShowSplashScreen = new CodeMethodInvokeExpression(cvreAppSplash, "Show", new
CodePrimitiveExpression
(true));
System.Activities (50)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (50)
155
new CodeAttributeArgument(new
CodePrimitiveExpression
(currentAssemblyName.Name)),
156
new CodeAttributeArgument(new
CodePrimitiveExpression
(currentAssemblyName.Version.ToString())));
171
new CodeAttributeArgument(new
CodePrimitiveExpression
(false)));
504
new
CodePrimitiveExpression
(memberData.Index),
517
new
CodePrimitiveExpression
(memberData.Index),
722
languageProperty.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(this.settings.Language)));
741
forImplementationField.InitExpression = new
CodePrimitiveExpression
(this.settings.ForImplementation);
766
new
CodePrimitiveExpression
(null));
773
new
CodePrimitiveExpression
(rootActivityFieldName))));
832
getLocationsMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
853
CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(descriptor.Id));
869
new
CodePrimitiveExpression
(locationName));
908
CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(descriptor.Id));
915
new
CodePrimitiveExpression
(null)));
995
CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(descriptor.Id));
1002
new
CodePrimitiveExpression
(null)));
1012
new
CodePrimitiveExpression
(null));
1045
new
CodePrimitiveExpression
(null));
1092
new
CodePrimitiveExpression
(cacheIndicies.Count)));
1096
new
CodePrimitiveExpression
(cacheIndicies[descriptor.TypeName]));
1108
new
CodePrimitiveExpression
(null));
1254
CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null));
1298
new
CodePrimitiveExpression
(descriptor.IsReference));
1303
new
CodePrimitiveExpression
(descriptor.ExpressionText));
1310
new
CodePrimitiveExpression
(true),
1311
new
CodePrimitiveExpression
(0));
1316
new
CodePrimitiveExpression
(true));
1330
new
CodePrimitiveExpression
(descriptor.Id));
1336
matchCondition.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true)));
1344
new
CodePrimitiveExpression
(-1)));
1348
new
CodePrimitiveExpression
(false)));
1361
new
CodePrimitiveExpression
(true));
1368
new
CodePrimitiveExpression
(true) });
1484
expressionMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
1519
expressionMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
1689
new
CodePrimitiveExpression
(valueField.Value.Index),
1725
new
CodePrimitiveExpression
(valueField.Value.Index),
1936
constructor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
(false));
1965
constructor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
(false));
2004
new
CodePrimitiveExpression
(true)),
2216
new
CodePrimitiveExpression
(true));
2223
new
CodePrimitiveExpression
(descriptor.NextMemberIndex)
2234
new
CodePrimitiveExpression
(false)));
2247
new
CodePrimitiveExpression
(descriptor.NextMemberIndex)))
2254
new
CodePrimitiveExpression
(descriptor.NextMemberIndex));
2278
new
CodePrimitiveExpression
(false),
2288
new
CodePrimitiveExpression
(true)));
2307
new
CodePrimitiveExpression
(memberData.Index)));
2312
new
CodePrimitiveExpression
(memberData.Name));
2326
returnStatement.Expression = new
CodePrimitiveExpression
(false);
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1450
private static CodeExpression Primitive(object primitive) { return new
CodePrimitiveExpression
(primitive);}
System.Data.Entity.Design (44)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (10)
398
new
CodePrimitiveExpression
(edmContainerName));
402
new
CodePrimitiveExpression
(storeContainerName));
406
new
CodePrimitiveExpression
(hashOverMappingClosure));
410
new
CodePrimitiveExpression
(viewHash));
414
new
CodePrimitiveExpression
(generatedViews.Count));
515
indexParameterReference, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(index)));
563
viewTextExpression = new
CodePrimitiveExpression
(viewText);
572
new
CodePrimitiveExpression
(extentFullName),
583
CodeObjectCreateExpression viewStringConstruct = new CodeObjectCreateExpression(typeof(StringBuilder), new
CodePrimitiveExpression
(capacity));
624
stringBuilder, "Append", new
CodePrimitiveExpression
(stringToAppend));
System\Data\EntityModel\Emitters\AttributeEmitter.cs (2)
348
expression = new
CodePrimitiveExpression
(argument);
364
expression = new
CodePrimitiveExpression
(arguments[i]);
System\Data\EntityModel\Emitters\Emitter.cs (1)
118
_nullExpression = new
CodePrimitiveExpression
(null);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (9)
220
emptyCtor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
("name=" + Item.Name));
221
emptyCtor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
(Item.Name));
240
connectionStringCtor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
(Item.Name));
259
connectionWorkspaceCtor.BaseConstructorArgs.Add(new
CodePrimitiveExpression
(Item.Name));
397
new
CodePrimitiveExpression
(createMethodArgument)
450
new
CodePrimitiveExpression
(set.Name),
521
executeArguments.Add(new
CodePrimitiveExpression
(functionImport.Name)); // first argument is the name of the function
593
new
CodePrimitiveExpression
(parameter.Name),
597
new
CodePrimitiveExpression
(parameter.Name),
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (6)
201
new
CodePrimitiveExpression
(cspaceNamespaceNameQualifiedRelationshipName), new
CodePrimitiveExpression
(target.Name), valueRef}))));
248
new
CodePrimitiveExpression
(cspaceNamespaceNameQualifiedRelationshipName), new
CodePrimitiveExpression
(target.Name), valueRef}))));
361
getMethod, new CodeExpression[] { new
CodePrimitiveExpression
(cspaceNamespaceNameQualifiedRelationshipName), new
CodePrimitiveExpression
(target.Name)});
System\Data\EntityModel\Emitters\PropertyEmitter.cs (15)
246
new
CodePrimitiveExpression
(PropertyName),
247
new
CodePrimitiveExpression
(Item.Nullable),
254
new
CodePrimitiveExpression
(true)));
316
new
CodePrimitiveExpression
(PropertyName)));
372
new
CodePrimitiveExpression
(PropertyName)));
481
parameters.Add(new
CodePrimitiveExpression
(Item.Nullable));
531
new
CodePrimitiveExpression
(PropertyName))));
537
new
CodePrimitiveExpression
(true)));
715
return new
CodePrimitiveExpression
(value);
753
bytes[iByte] = new
CodePrimitiveExpression
(data[iByte]);
763
new
CodePrimitiveExpression
(guid.ToString("D", CultureInfo.InvariantCulture)));
771
return new CodeObjectCreateExpression(TypeReference.DateTime, new
CodePrimitiveExpression
(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
778
return new CodeObjectCreateExpression(TypeReference.DateTimeOffset, new
CodePrimitiveExpression
(dateTimeOffset.Ticks),
779
new CodeObjectCreateExpression(TypeReference.TimeSpan, new
CodePrimitiveExpression
(dateTimeOffset.Offset.Ticks)));
785
return new CodeObjectCreateExpression(TypeReference.TimeSpan, new
CodePrimitiveExpression
(timeSpan.Ticks));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
214
complexVerifyParameters.Add(new
CodePrimitiveExpression
(propertyEmitter.PropertyName));
System.Data.Services.Design (27)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (3)
31
new CodeAttributeArgument(new
CodePrimitiveExpression
(_generatorName)),
32
new CodeAttributeArgument(new
CodePrimitiveExpression
(_generatorVersion)));
158
expression = new
CodePrimitiveExpression
(argument);
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (3)
728
CodeTypeReferenceOptions.GlobalReference), new CodeAttributeArgument(new
CodePrimitiveExpression
(entitySet.Name)));
795
new
CodePrimitiveExpression
(null)),
831
new CodeExpression[] { new
CodePrimitiveExpression
(name) }
System\Data\EntityModel\Emitters\Emitter.cs (1)
107
_nullExpression = new
CodePrimitiveExpression
(null);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (10)
281
new
CodePrimitiveExpression
(pair.Key),
301
new
CodePrimitiveExpression
(pair.Key.Length)
304
new
CodePrimitiveExpression
(false)
313
new
CodePrimitiveExpression
(null)));
350
new
CodePrimitiveExpression
(pair.Key + "."),
427
new
CodePrimitiveExpression
(containerNamespace)));
440
new
CodePrimitiveExpression
(ns));
444
return new
CodePrimitiveExpression
(ns);
558
new
CodePrimitiveExpression
(set.Name)
614
new
CodePrimitiveExpression
(set.Name),
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
75
new
CodePrimitiveExpression
(null),
System\Data\EntityModel\Emitters\PropertyEmitter.cs (7)
258
new
CodePrimitiveExpression
(true)
268
new
CodePrimitiveExpression
(true)
372
new
CodePrimitiveExpression
(true)));
641
return new
CodePrimitiveExpression
(value);
680
bytes[iByte] = new
CodePrimitiveExpression
(data[iByte]);
694
new
CodePrimitiveExpression
(guid.ToString("D", CultureInfo.InvariantCulture)));
705
return new CodeObjectCreateExpression(TypeReference.DateTime, new
CodePrimitiveExpression
(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (2)
206
complexVerifyParameters.Add(new
CodePrimitiveExpression
(propertyEmitter.PropertyName));
215
new
CodePrimitiveExpression
(parameterName)
System.Management (291)
WmiGenerator.cs (291)
310
new
CodePrimitiveExpression
(OriginalNamespace),true,GetString("COMMENT_CREATEDWMINAMESPACE"));
316
new
CodePrimitiveExpression
(OriginalClassName),true,GetString("COMMENT_CREATEDCLASS"));
374
new
CodePrimitiveExpression
(null),true,GetString("COMMENT_STATICMANAGEMENTSCOPE"));
480
GeneratePrivateMember(PrivateNamesUsed["AutoCommitProperty"].ToString(),"System.Boolean" ,new
CodePrimitiveExpression
(true),false,GetString("COMMENT_PRIVAUTOCOMMIT"));
489
GeneratePrivateMember(PrivateNamesUsed["IsEmbedded"].ToString(),"System.Boolean",new
CodePrimitiveExpression
(false),false,GetString("COMMENT_FLAGFOREMBEDDED"));
978
caa.Value = new
CodePrimitiveExpression
(isBrowsable);
998
cmp.GetStatements.Add (new CodeMethodReturnStatement (new
CodePrimitiveExpression
(propValue)));
1020
caa.Value = new
CodePrimitiveExpression
(isBrowsable);
1059
caa.Value = new
CodePrimitiveExpression
(true);
1073
cboe.Right = new
CodePrimitiveExpression
(false);
1078
cis.FalseStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
1086
cboe.Right = new
CodePrimitiveExpression
(false);
1095
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
1097
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
1101
cboe1.Right = new
CodePrimitiveExpression
(true);
1106
coce.Parameters.Add(new
CodePrimitiveExpression
(GetString("CLASSNOT_FOUND_EXCEPT")));
1158
caa.Value = new
CodePrimitiveExpression
(true);
1190
new CodeExpression[] {new
CodePrimitiveExpression
(prop.Name)});
1262
caa.Value = new
CodePrimitiveExpression
(true);
1270
caa.Value = new
CodePrimitiveExpression
(false);
1288
new CodeExpression[] {new
CodePrimitiveExpression
(prop.Name)});
1304
caa.Value = new
CodePrimitiveExpression
(description);
1340
new
CodePrimitiveExpression
(null));
1343
cis.TrueStatements.Add(new CodeMethodReturnStatement (new
CodePrimitiveExpression
(true) ));
1344
cis.FalseStatements.Add(new CodeMethodReturnStatement (new
CodePrimitiveExpression
(false) ));
1363
new
CodePrimitiveExpression
(null));
1369
cis.TrueStatements.Add(new CodeMethodReturnStatement (new
CodePrimitiveExpression
(null)));
1380
cmie.Parameters.Add(new
CodePrimitiveExpression
(prop.NullEnumValue));
1393
cmie.Parameters.Add(new
CodePrimitiveExpression
(prop.NullEnumValue));
1432
new
CodePrimitiveExpression
(false));
1434
cis2.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true)));
1437
cmm.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
1496
cmm2.Statements.Add(new CodeAssignStatement(cie,new
CodePrimitiveExpression
(null)));
1546
new
CodePrimitiveExpression
(0)));
1555
ccs.TrueStatements.Add(new CodeAssignStatement(cie,new
CodePrimitiveExpression
(null)));
1579
new
CodePrimitiveExpression
(true));
1583
new
CodePrimitiveExpression
(false));
1888
cmf.InitExpression = new
CodePrimitiveExpression
(ValueMap[i]);
1905
cmf.InitExpression = new
CodePrimitiveExpression
(i);
1919
cmf.InitExpression = new
CodePrimitiveExpression
(0);
1929
cmf.InitExpression = new
CodePrimitiveExpression
((int)(maxValue+1));
1938
cmf.InitExpression = new
CodePrimitiveExpression
(0);
1992
cmf.InitExpression = new
CodePrimitiveExpression
(BitMap[i]);
1998
cmf.InitExpression = new
CodePrimitiveExpression
(bitValue);
2025
cmf.InitExpression = new
CodePrimitiveExpression
(0);
2043
cmf.InitExpression = new
CodePrimitiveExpression
((int)(maxBitValue));
2054
cmf.InitExpression = new
CodePrimitiveExpression
(0);
2102
cmm.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(strPath)));
2108
cmm.Statements.Add(new CodeVariableDeclarationStatement("System.String",strPathObject,new
CodePrimitiveExpression
(strPath)));
2115
CodeMethodInvokeExpression cmie1 = GenerateConcatStrings(new CodeVariableReferenceExpression("key"+arrKeys[i]),new
CodePrimitiveExpression
("\""));
2117
CodeMethodInvokeExpression cmie2 = GenerateConcatStrings(new
CodePrimitiveExpression
("\""),cmie1);
2119
CodeMethodInvokeExpression cmie3 = GenerateConcatStrings(new
CodePrimitiveExpression
(((i==0)?("."+arrKeys[i]+"="):(","+arrKeys[i]+"="))),cmie2);
2132
CodeMethodInvokeExpression cmie1 = GenerateConcatStrings(new
CodePrimitiveExpression
(((i==0)?("."+arrKeys[i]+"="):(","+arrKeys[i]+"="))),cmie);
2159
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2176
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2178
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2217
cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new
CodePrimitiveExpression
(null)));
2220
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2236
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2276
cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new
CodePrimitiveExpression
(null)));
2296
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2326
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2328
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2356
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2386
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2420
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2446
cmieInit.Parameters.Add(new
CodePrimitiveExpression
(null));
2581
cie = new CodeIndexerExpression(cpre,new
CodePrimitiveExpression
("__CLASS"));
2591
cboe.Right = new
CodePrimitiveExpression
(true);
2608
coce.Parameters.Add(new
CodePrimitiveExpression
(GetString("CLASSNOT_FOUND_EXCEPT")));
2658
cboe.Right = new
CodePrimitiveExpression
(true);
2675
new
CodePrimitiveExpression
(true)));
2679
coce.Parameters.Add(new
CodePrimitiveExpression
(GetString("CLASSNOT_FOUND_EXCEPT")));
2735
new
CodePrimitiveExpression
(null));
2748
cboe.Right = new
CodePrimitiveExpression
(true);
2753
coce.Parameters.Add(new
CodePrimitiveExpression
(GetString("CLASSNOT_FOUND_EXCEPT")));
2789
cctor.Statements.Add(new CodeAssignStatement(cpre, new
CodePrimitiveExpression
(true)));
2889
cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Boolean","IsMethodStatic",new
CodePrimitiveExpression
(bStatic)));
2891
cboe.Right = new
CodePrimitiveExpression
(true);
2896
cboe.Right = new
CodePrimitiveExpression
(false);
2906
strInParams,new
CodePrimitiveExpression
(null)));
2921
coce1.Parameters.Add(new
CodePrimitiveExpression
(null));
2944
cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new
CodePrimitiveExpression
(true)));
2964
new
CodePrimitiveExpression
(meth.Name));
2998
cie = new CodeIndexerExpression(new CodeVariableReferenceExpression(strInParams),new
CodePrimitiveExpression
(prop.Name));
3064
cmie.Parameters.Add(new
CodePrimitiveExpression
(meth.Name));
3066
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3118
cie = new CodeIndexerExpression(cpre,new
CodePrimitiveExpression
(prop.Name));
3168
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3169
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3170
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3171
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3172
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3188
cmie2.Parameters.Add(new
CodePrimitiveExpression
(0));
3196
new
CodePrimitiveExpression
(null)));
3213
cmie.Parameters.Add(new
CodePrimitiveExpression
(meth.Name));
3215
cmie.Parameters.Add(new
CodePrimitiveExpression
(null)); // Bug NO: 108605
3226
cie = new CodeIndexerExpression(cpre,new
CodePrimitiveExpression
(inoutParams[i].ToString()));
3244
cie = new CodeIndexerExpression(cpre,new
CodePrimitiveExpression
("ReturnValue"));
3249
cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new
CodePrimitiveExpression
(null)));
3255
cis.FalseStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
3275
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3276
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3277
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3278
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3279
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
3300
cmie.Parameters.Add(new
CodePrimitiveExpression
(0));
3312
cis.FalseStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
3341
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3342
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3343
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3374
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3376
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3405
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3406
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3438
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3489
cboe.Right = new
CodePrimitiveExpression
(null);
3496
cboe1.Right = new
CodePrimitiveExpression
(null);
3507
new
CodePrimitiveExpression
(classobj.Scope.Path.NamespacePath)));
3524
new
CodePrimitiveExpression
(OriginalClassName)));
3528
new
CodePrimitiveExpression
(classobj.Scope.Path.NamespacePath)));
3535
coce.Parameters.Add(new
CodePrimitiveExpression
(null));
3543
cboe.Right = new
CodePrimitiveExpression
(null);
3554
new
CodePrimitiveExpression
(true)));
3598
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3629
cmie.Parameters.Add(new
CodePrimitiveExpression
(null));
3669
cboe.Right = new
CodePrimitiveExpression
(null);
3677
cboe1.Right = new
CodePrimitiveExpression
(null);
3688
new
CodePrimitiveExpression
(classobj.Scope.Path.NamespacePath)));
3698
coce1.Parameters.Add(new
CodePrimitiveExpression
(OriginalClassName));
3720
new
CodePrimitiveExpression
(true)));
4157
new
CodePrimitiveExpression
(null));
4161
new
CodePrimitiveExpression
(null));
4173
new
CodePrimitiveExpression
(false));
4222
new
CodePrimitiveExpression
(null));
4226
new
CodePrimitiveExpression
(null));
4238
new
CodePrimitiveExpression
(false));
4245
cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new
CodePrimitiveExpression
(""))));
4263
new
CodePrimitiveExpression
(null));
4270
new
CodePrimitiveExpression
(false));
4278
cis.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
("")));
4424
cfls.InitStatement = new CodeAssignStatement(new CodeVariableReferenceExpression(strnCtr),new
CodePrimitiveExpression
(0));
4434
new
CodePrimitiveExpression
(1)));
5054
caa.Value = new
CodePrimitiveExpression
(true);
5064
cboe.Right = new
CodePrimitiveExpression
(false);
5088
caa.Value = new
CodePrimitiveExpression
(true);
5098
cboe.Right = new
CodePrimitiveExpression
(false);
5425
caa.Value = new
CodePrimitiveExpression
(true);
5446
cboe.Right = new
CodePrimitiveExpression
(null);
5455
cboe1.Right = new
CodePrimitiveExpression
(null);
5464
new
CodePrimitiveExpression
("__CLASS")))));
5470
cboe3.Right = new
CodePrimitiveExpression
(null);
5520
new
CodePrimitiveExpression
(true),
5532
cboe.Right = new
CodePrimitiveExpression
(0);
5537
cboe1.Right = new
CodePrimitiveExpression
(null);
5548
cis.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true)));
5591
new
CodePrimitiveExpression
("__CLASS"))),
5593
new
CodePrimitiveExpression
(true),
5605
cboe.Right = new
CodePrimitiveExpression
(0);
5610
cboe1.Right = new
CodePrimitiveExpression
(null);
5621
cis.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true)));
5625
new
CodePrimitiveExpression
("__DERIVATION")));
5633
cboe.Right = new
CodePrimitiveExpression
(null);
5639
cis1.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new
CodePrimitiveExpression
(0)));
5640
cfls.InitStatement = new CodeAssignStatement(new CodeVariableReferenceExpression(strnCtr),new
CodePrimitiveExpression
(0));
5650
new
CodePrimitiveExpression
(1)));
5661
new
CodePrimitiveExpression
(true),
5672
cboe.Right = new
CodePrimitiveExpression
(0);
5676
cis2.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true)));
5684
cmm.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
5703
cboe1.Right = new
CodePrimitiveExpression
(null);
5721
statColl.Add (new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
5726
statColl.Add(new CodeAssignStatement(varToAssign,new
CodePrimitiveExpression
(null)));
5768
cboe1.Right = new
CodePrimitiveExpression
(null);
5821
new
CodePrimitiveExpression
(0)
5836
new
CodePrimitiveExpression
(1)
5864
statColl.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
5869
statColl.Add(new CodeAssignStatement(varToAssign,new
CodePrimitiveExpression
(null)));
5903
cboe1.Right = new
CodePrimitiveExpression
(null);
5942
new
CodePrimitiveExpression
(0)
5958
new
CodePrimitiveExpression
(1)
5974
cis1.FalseStatements.Add(new CodeAssignStatement(prop,new
CodePrimitiveExpression
(null)));
6005
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6006
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6007
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6008
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6009
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6076
caa.Value = new
CodePrimitiveExpression
(true);
6098
cboe.Right = new
CodePrimitiveExpression
(false);
6105
cis.FalseStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
6112
cboe.Right = new
CodePrimitiveExpression
(false);
6143
cmProp.GetStatements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new
CodePrimitiveExpression
(0)));
6144
cfls.InitStatement = new CodeAssignStatement(new CodeVariableReferenceExpression(strnCtr),new
CodePrimitiveExpression
(0));
6154
new
CodePrimitiveExpression
(1)));
6302
caa.Value = new
CodePrimitiveExpression
(true);
6314
new
CodePrimitiveExpression
(null)));
6319
cboe1.Right = new
CodePrimitiveExpression
(null);
6348
coce1.Parameters.Add(new
CodePrimitiveExpression
(null));
6381
caa.Value = new
CodePrimitiveExpression
(true);
6468
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new
CodePrimitiveExpression
(0)));
6490
cboe.Right = new
CodePrimitiveExpression
(null);
6511
cboe.Right = new
CodePrimitiveExpression
(0);
6529
cboe.Right = new
CodePrimitiveExpression
(DMTF_DATETIME_STR_LENGTH);
6557
cmie.Parameters.Add(new
CodePrimitiveExpression
(15));
6558
cmie.Parameters.Add(new
CodePrimitiveExpression
(6));
6563
cboe.Left = new
CodePrimitiveExpression
("******");
6576
cboe.Right = new
CodePrimitiveExpression
(1000);
6598
cboeYear.Right = new
CodePrimitiveExpression
(0);
6604
cboeMonth.Right = new
CodePrimitiveExpression
(0);
6609
cboeDay.Right = new
CodePrimitiveExpression
(0);
6614
cboeHour.Right = new
CodePrimitiveExpression
(0);
6619
cboeMinute.Right = new
CodePrimitiveExpression
(0);
6624
cboeSecond.Right = new
CodePrimitiveExpression
(0);
6629
cboeTicks.Right = new
CodePrimitiveExpression
(0);
6685
codeThrowExceptionWithArgs.Parameters.Add(new
CodePrimitiveExpression
(null));
6716
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
6749
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),utcOffset,new
CodePrimitiveExpression
(0)));
6751
cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),offsetAdjust,new
CodePrimitiveExpression
(0)));
6770
cmie.Parameters.Add(new
CodePrimitiveExpression
(22));
6771
cmie.Parameters.Add(new
CodePrimitiveExpression
(3));
6796
cboe.Right = new
CodePrimitiveExpression
("******");
6805
cmie.Parameters.Add(new
CodePrimitiveExpression
(21));
6806
cmie.Parameters.Add(new
CodePrimitiveExpression
(4));
6860
cmie.Parameters.Add(new
CodePrimitiveExpression
(SubStringParam1));
6861
cmie.Parameters.Add(new
CodePrimitiveExpression
(SubStringParam2));
6865
cboe.Left = new
CodePrimitiveExpression
(toCompare);
6916
cmie1.Parameters.Add(new
CodePrimitiveExpression
(8));
6917
cmie1.Parameters.Add(new
CodePrimitiveExpression
('0'));
7001
cmie1.Parameters.Add(new
CodePrimitiveExpression
(2));
7002
cmie1.Parameters.Add(new
CodePrimitiveExpression
('0'));
7018
cmie1.Parameters.Add(new
CodePrimitiveExpression
(2));
7019
cmie1.Parameters.Add(new
CodePrimitiveExpression
('0'));
7035
cmie1.Parameters.Add(new
CodePrimitiveExpression
(2));
7036
cmie1.Parameters.Add(new
CodePrimitiveExpression
('0'));
7045
cmie2 = GenerateConcatStrings(new CodeVariableReferenceExpression(dmtfTimeSpan),new
CodePrimitiveExpression
("."));
7058
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
7072
cboe1.Right = new
CodePrimitiveExpression
(1000);
7105
cboe.Right = new
CodePrimitiveExpression
(6);
7114
cmie.Parameters.Add(new
CodePrimitiveExpression
(0));
7115
cmie.Parameters.Add(new
CodePrimitiveExpression
(6));
7126
cmie.Parameters.Add(new
CodePrimitiveExpression
(6));
7127
cmie.Parameters.Add(new
CodePrimitiveExpression
('0'));
7134
cmie2 = GenerateConcatStrings(new CodeVariableReferenceExpression(dmtfTimeSpan),new
CodePrimitiveExpression
(":000"));
7217
cboe.Right = new
CodePrimitiveExpression
(999);
7228
cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),new
CodePrimitiveExpression
("+000")));
7238
cboe1.Right = new
CodePrimitiveExpression
(0);
7254
cmie2.Parameters.Add(new
CodePrimitiveExpression
(3));
7255
cmie2.Parameters.Add(new
CodePrimitiveExpression
('0'));
7258
GenerateConcatStrings(new
CodePrimitiveExpression
("+"),cmie2)));
7273
cmie2.Parameters.Add(new
CodePrimitiveExpression
(1));
7276
new
CodePrimitiveExpression
(1)));
7281
cmie3.Parameters.Add(new
CodePrimitiveExpression
(3));
7282
cmie3.Parameters.Add(new
CodePrimitiveExpression
('0'));
7285
GenerateConcatStrings(new
CodePrimitiveExpression
("-"),cmie3)));
7302
cmie2.Parameters.Add(new
CodePrimitiveExpression
(4));
7303
cmie2.Parameters.Add(new
CodePrimitiveExpression
('0'));
7340
GenerateConcatStrings(new CodeVariableReferenceExpression(dmtfDateTime),new
CodePrimitiveExpression
("."))));
7354
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
7369
cboe1.Right = new
CodePrimitiveExpression
(1000);
7401
cboe.Right = new
CodePrimitiveExpression
(6);
7410
cmie1.Parameters.Add(new
CodePrimitiveExpression
(0));
7411
cmie1.Parameters.Add(new
CodePrimitiveExpression
(6));
7422
cmie1.Parameters.Add(new
CodePrimitiveExpression
(6));
7423
cmie1.Parameters.Add(new
CodePrimitiveExpression
('0'));
7456
cmie2.Parameters.Add(new
CodePrimitiveExpression
(2));
7457
cmie2.Parameters.Add(new
CodePrimitiveExpression
('0'));
7487
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),days,new
CodePrimitiveExpression
(0)));
7489
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hours,new
CodePrimitiveExpression
(0)));
7491
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minutes,new
CodePrimitiveExpression
(0)));
7493
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),seconds,new
CodePrimitiveExpression
(0)));
7495
cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new
CodePrimitiveExpression
(0)));
7506
cboe.Right = new
CodePrimitiveExpression
(null);
7527
cboe.Right = new
CodePrimitiveExpression
(0);
7546
cboe.Right = new
CodePrimitiveExpression
(DMTF_DATETIME_STR_LENGTH);
7564
cmie.Parameters.Add(new
CodePrimitiveExpression
(21));
7565
cmie.Parameters.Add(new
CodePrimitiveExpression
(4));
7569
cboe.Right = new
CodePrimitiveExpression
(":000");
7612
cmie.Parameters.Add(new
CodePrimitiveExpression
(15));
7613
cmie.Parameters.Add(new
CodePrimitiveExpression
(6));
7639
new
CodePrimitiveExpression
(1000)
7655
cboeDays.Right = new
CodePrimitiveExpression
(0);
7661
cboeHours.Right = new
CodePrimitiveExpression
(0);
7666
cboeMinutes.Right = new
CodePrimitiveExpression
(0);
7671
cboeSeconds.Right = new
CodePrimitiveExpression
(0);
7676
cboeTicks.Right = new
CodePrimitiveExpression
(0);
7716
codeThrowExceptionWithArgs.Parameters.Add(new
CodePrimitiveExpression
(null));
7746
coce.Parameters.Add(new
CodePrimitiveExpression
(0));
7784
cmie.Parameters.Add(new
CodePrimitiveExpression
(start));
7785
cmie.Parameters.Add(new
CodePrimitiveExpression
(numOfCharacters));
7814
new
CodePrimitiveExpression
(true)));
7816
new
CodePrimitiveExpression
(false)));
System.Runtime.Serialization (31)
System\Runtime\Serialization\CodeExporter.cs (31)
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)));
1092
dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NameProperty, new
CodePrimitiveExpression
(dataContractName)));
1093
dataContractAttribute.Arguments.Add(new CodeAttributeArgument(Globals.NamespaceProperty, new
CodePrimitiveExpression
(enumDataContract.StableName.Namespace)));
1108
enumMember.InitExpression = new
CodePrimitiveExpression
(longValue);
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))));
1278
new CodeAttributeArgument(Globals.IsAnyProperty, new
CodePrimitiveExpression
(true)))
1285
new CodeAttributeArgument(new
CodePrimitiveExpression
(Globals.ExportSchemaMethod)))
1293
typeNameField.InitExpression = new CodeObjectCreateExpression(Globals.TypeOfXmlQualifiedName, new
CodePrimitiveExpression
(typeName.Name), new
CodePrimitiveExpression
(typeName.Namespace));
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)));
1625
get { return new
CodePrimitiveExpression
(null); }
1969
right = new
CodePrimitiveExpression
(true);
1972
ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new
CodePrimitiveExpression
(propertyName)));
System.ServiceModel (28)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (2)
41
new
CodePrimitiveExpression
(((TimeSpan)(object)value).Ticks));
47
newValue = new
CodePrimitiveExpression
((object)value);
System\ServiceModel\Description\ClientClassGenerator.cs (8)
553
new CodeArrayIndexerExpression(resultsFieldReference, new
CodePrimitiveExpression
(count++)));
565
new
CodePrimitiveExpression
(count)));
675
new CodeArrayIndexerExpression(inValuesRef, new
CodePrimitiveExpression
(i)));
762
onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(null)));
828
new
CodePrimitiveExpression
(null)),
877
invokeAsync.Parameters.Add(new
CodePrimitiveExpression
(null));
908
invokeEventAsyncMethod.Parameters.Add(new
CodePrimitiveExpression
(null));
926
new
CodePrimitiveExpression
(null)),
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
215
dataContractAttributeDecl.Arguments.Add(new CodeAttributeArgument("Namespace", new
CodePrimitiveExpression
(part.Namespace)));
System\ServiceModel\Description\OperationGenerator.cs (5)
788
new
CodePrimitiveExpression
(NamingHelper.CodeName(message.Body.WrapperName))));
790
new
CodePrimitiveExpression
(message.Body.WrapperNamespace)));
792
new
CodePrimitiveExpression
(true)));
796
new
CodePrimitiveExpression
(false)));
1033
return new
CodePrimitiveExpression
(val);
System\ServiceModel\Description\ServiceContractGenerator.cs (12)
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)));
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)));
554
generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Name)));
555
generatedCodeAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Version.ToString())));
664
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Action", new
CodePrimitiveExpression
(fault.Action)));
674
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Name", new
CodePrimitiveExpression
(fault.ElementName.EncodedName)));
676
faultContractAttr.Arguments.Add(new CodeAttributeArgument("Namespace", new
CodePrimitiveExpression
(fault.Namespace)));
System.Web (152)
Compilation\AppSettingsExpressionBuilder.cs (3)
34
new
CodePrimitiveExpression
(entry.Expression.Trim()));
40
new
CodePrimitiveExpression
(entry.Expression.Trim()),
42
new
CodePrimitiveExpression
(entry.PropertyInfo.Name));
Compilation\AssemblyBuilder.cs (7)
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)));
609
new CodeAttributeArgument(new
CodePrimitiveExpression
(BuildManager.TargetFramework.FullName)));
Compilation\BaseCodeDomTreeGenerator.cs (6)
453
new
CodePrimitiveExpression
(false));
461
new
CodePrimitiveExpression
(true)));
617
ifStmt.Condition = new CodeBinaryOperatorExpression(fieldAccess, CodeBinaryOperatorType.IdentityEquality, new
CodePrimitiveExpression
(null));
645
getObject.Parameters.Add(new
CodePrimitiveExpression
(entry.Name));
707
createObjectCall.Parameters.Add(new
CodePrimitiveExpression
(obj.Progid));
717
createObjectCall.Parameters.Add(new
CodePrimitiveExpression
(obj.Clsid));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (36)
101
AddOutputWriteStatement(methodStatements, new
CodePrimitiveExpression
(s), null);
116
methodInvoke.Parameters.Add(new
CodePrimitiveExpression
(offset));
117
methodInvoke.Parameters.Add(new
CodePrimitiveExpression
(size));
118
methodInvoke.Parameters.Add(new
CodePrimitiveExpression
(fAsciiOnly));
274
newExpr.Parameters.Add(new
CodePrimitiveExpression
(builder.TagName));
281
newExpr.Parameters.Add(new
CodePrimitiveExpression
(
283
newExpr.Parameters.Add(new
CodePrimitiveExpression
(
317
set.Right = new
CodePrimitiveExpression
(builder.SkinID);
371
newExtractValuesDelegate = new
CodePrimitiveExpression
(null);
494
new
CodePrimitiveExpression
(templateName)));
498
CodeBinaryOperatorExpression contentNullCheckExpr = new CodeBinaryOperatorExpression(contentTemplatesFieldRef, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null));
501
removeExpr.Parameters.Add(new
CodePrimitiveExpression
(templateName));
530
templateIfStmt.Condition = new CodeBinaryOperatorExpression(templateFieldRef, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null));
567
cmiExpression.Parameters.Add(new
CodePrimitiveExpression
(contentPlaceHolderID));
600
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(i/2));
601
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(s));
671
call.Parameters.Add(new
CodePrimitiveExpression
(ctrlBuilder.ID));
676
call.Parameters.Add(new
CodePrimitiveExpression
(
680
call.Parameters.Add(new
CodePrimitiveExpression
(Guid.NewGuid().ToString()));
681
call.Parameters.Add(new
CodePrimitiveExpression
(cacheAttrib.Duration));
682
call.Parameters.Add(new
CodePrimitiveExpression
(cacheAttrib.VaryByParams));
683
call.Parameters.Add(new
CodePrimitiveExpression
(cacheAttrib.VaryByControls));
684
call.Parameters.Add(new
CodePrimitiveExpression
(cacheAttrib.VaryByCustom));
685
call.Parameters.Add(new
CodePrimitiveExpression
(cacheAttrib.SqlDependency));
692
call.Parameters.Add(new
CodePrimitiveExpression
(providerName));
709
newExpr.Parameters.Add(new
CodePrimitiveExpression
(s));
721
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(offset));
722
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(size));
723
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(fAsciiOnly));
924
templateIfStmt.Condition = new CodeBinaryOperatorExpression(templateFieldRef, CodeBinaryOperatorType.IdentityEquality, new
CodePrimitiveExpression
(null));
1065
findControlCallExpression.Parameters.Add(new
CodePrimitiveExpression
(findControlParameter));
1082
ensureControlExpression.Right = new
CodePrimitiveExpression
(null);
1087
new
CodePrimitiveExpression
(fieldParameter));
1319
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(i/2));
1554
new
CodePrimitiveExpression
(controlIndex++),
1760
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(current.Filter));
Compilation\CodeDOMUtility.cs (6)
51
rightExpr = new
CodePrimitiveExpression
((string)value);
55
rightExpr = new
CodePrimitiveExpression
(value);
63
rightExpr = new
CodePrimitiveExpression
(value);
197
methCall.Parameters.Add(new
CodePrimitiveExpression
(s));
205
methCall.Parameters.Add(new
CodePrimitiveExpression
(value.ToString()));
261
methodInvoke.Parameters.Add(new
CodePrimitiveExpression
(targetPropertyName));
Compilation\ConnectionStringsExpressionBuilder.cs (2)
58
return new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(this.GetType()), "GetConnectionString", new
CodePrimitiveExpression
(name));
61
return new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(this.GetType()), "GetConnectionStringProviderName", new
CodePrimitiveExpression
(name));
Compilation\DataBindingExpressionBuilder.cs (3)
43
evalExpr.Parameters.Add(new
CodePrimitiveExpression
(field));
45
evalExpr.Parameters.Add(new
CodePrimitiveExpression
(formatString));
59
new
CodePrimitiveExpression
(null));
Compilation\MasterPageCodeDomTreeGenerator.cs (1)
35
stmt.Expression = new CodeMethodInvokeExpression(propertyExpr, "Add", new
CodePrimitiveExpression
(placeHolderID.ToLower(CultureInfo.InvariantCulture)));
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
125
new
CodePrimitiveExpression
(null))
Compilation\PageCodeDomTreeGenerator.cs (21)
103
new CodeExpression[] {new
CodePrimitiveExpression
(i++)});
105
addFileDep.Right = new
CodePrimitiveExpression
(src);
139
setScriptTimeout.Right = new
CodePrimitiveExpression
(DebugScriptTimeout);
147
new
CodePrimitiveExpression
(Parser.TransactionMode)));
153
new
CodePrimitiveExpression
(Parser.AspCompatMode)));
159
new
CodePrimitiveExpression
(Parser.AsyncMode)));
174
outputCacheSettingsField.InitExpression = new
CodePrimitiveExpression
(null);
190
new
CodePrimitiveExpression
(null));
217
new
CodePrimitiveExpression
(cacheSettings.CacheProfile));
225
new
CodePrimitiveExpression
(cacheSettings.Duration));
233
new
CodePrimitiveExpression
(cacheSettings.Enabled));
251
new
CodePrimitiveExpression
(cacheSettings.NoStore));
259
new
CodePrimitiveExpression
(cacheSettings.SqlDependency));
267
new
CodePrimitiveExpression
(cacheSettings.VaryByControl));
275
new
CodePrimitiveExpression
(cacheSettings.VaryByCustom));
283
new
CodePrimitiveExpression
(cacheSettings.VaryByContentEncoding));
290
new
CodePrimitiveExpression
(cacheSettings.VaryByHeader));
298
new
CodePrimitiveExpression
(cacheSettings.VaryByParam));
363
method.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(Parser.TypeHashCode)));
377
CodeExpression rightExpr = new
CodePrimitiveExpression
(Parser.StyleSheetTheme);
411
new
CodePrimitiveExpression
(Parser.TraceEnabled == TraceEnable.Enable)));
Compilation\PageThemeCodeDomTreeGenerator.cs (5)
73
cmie.Parameters.Add(new
CodePrimitiveExpression
(skinID));
109
expr.Parameters.Add(new
CodePrimitiveExpression
(initialSize));
139
cssFiles[i++] = new
CodePrimitiveExpression
(cssFile);
146
field.InitExpression = new
CodePrimitiveExpression
(null);
172
new
CodePrimitiveExpression
(_themeParser.VirtualDirPath.VirtualPathString));
Compilation\ProfileBuildProvider.cs (3)
202
cmie.Parameters.Add(new
CodePrimitiveExpression
(name));
218
setLine.Parameters.Add(new
CodePrimitiveExpression
(name));
252
cmie.Parameters.Add(new
CodePrimitiveExpression
(prop.Name));
Compilation\ResourceExpressionBuilder.cs (5)
125
expr.Parameters.Add(new
CodePrimitiveExpression
(classKey));
126
expr.Parameters.Add(new
CodePrimitiveExpression
(resourceKey));
131
expr.Parameters.Add(new
CodePrimitiveExpression
(entry.PropertyInfo.Name));
144
expr.Parameters.Add(new
CodePrimitiveExpression
(resourceKey));
149
expr.Parameters.Add(new
CodePrimitiveExpression
(entry.PropertyInfo.Name));
Compilation\RouteUrlExpressionBuilder.cs (1)
34
new
CodePrimitiveExpression
(entry.Expression.Trim()));
Compilation\RouteValueExpressionBuilder.cs (2)
34
new
CodePrimitiveExpression
(entry.Expression.Trim()),
36
new
CodePrimitiveExpression
(entry.Name)
Compilation\TemplateControlCodeDomTreeGenerator.cs (7)
75
new
CodePrimitiveExpression
(Parser.CurrentVirtualPath.AppRelativeVirtualPathString));
155
bindMethod.Statements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(String.Empty)));
206
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(0));
237
prop.GetStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
301
attrArgs.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(arg.Value)));
305
attrArgs.Add(new CodeAttributeArgument(arg.MemberName, new
CodePrimitiveExpression
(arg.TypedValue.Value)));
313
new CodeAttributeArgument(new
CodePrimitiveExpression
(p.DefaultValue)));
Compilation\UserControlCodeDomTreeGenerator.cs (7)
37
new
CodePrimitiveExpression
(cacheSettings.Duration));
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));
51
attribArg = new CodeAttributeArgument("ProviderName", new
CodePrimitiveExpression
(Parser.Provider));
Configuration\BrowserCapabilitiesCodeGenerator.cs (34)
699
new CodeAttributeArgument(new
CodePrimitiveExpression
(_strongNameKeyFileName))});
755
istatement.Condition = new CodeBinaryOperatorExpression(cmie, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(false));
916
new
CodePrimitiveExpression
(bd.ID)
920
new
CodePrimitiveExpression
(bd.ParentName),
922
new
CodePrimitiveExpression
(bd.Depth)});
936
new
CodePrimitiveExpression
(bd.ID)
940
new
CodePrimitiveExpression
(bd.ParentName),
942
new
CodePrimitiveExpression
(bd.Depth)});
974
new
CodePrimitiveExpression
(header)
976
cas.Right = new
CodePrimitiveExpression
(null);
1011
cmie.Parameters.Add(new
CodePrimitiveExpression
(bd.ID));
1038
IgnoreApplicationBrowserVariableName, new
CodePrimitiveExpression
(bd.Browsers.Count != 0));
1053
codeAssignStmt.Right = new
CodePrimitiveExpression
(false);
1079
CodeMethodReturnStatement cmrs = new CodeMethodReturnStatement(new
CodePrimitiveExpression
(true));
1142
emptyCheckStmt.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
1201
new CodeExpression[] { new
CodePrimitiveExpression
(header) }
1225
cmie.Parameters.Add(new
CodePrimitiveExpression
(matchedString));
1238
istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(true));
1241
istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(false));
1243
istatement.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
1269
new
CodePrimitiveExpression
(((CheckPair)bd.IdCapabilityChecks[i]).Header)
1288
cmie.Parameters.Add(new
CodePrimitiveExpression
(matchedString));
1299
istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(true));
1302
istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(false));
1304
istatement.TrueStatements.Add(new CodeMethodReturnStatement(new
CodePrimitiveExpression
(false)));
1355
new CodeExpression[] { new
CodePrimitiveExpression
(header) }
1361
cmie.Parameters.Add(new
CodePrimitiveExpression
(matchedString));
1382
new CodeExpression[] { new
CodePrimitiveExpression
(((CheckPair)bd.CaptureCapabilityChecks[i]).Header) }
1387
cmie.Parameters.Add(new
CodePrimitiveExpression
(matchedString));
1407
new CodeExpression[] { new
CodePrimitiveExpression
(s) } );
1409
CodePrimitiveExpression capabilityExpr = new
CodePrimitiveExpression
(capsString);
1434
new CodeExpression[] { new
CodePrimitiveExpression
(controlString) }
1438
assignAdapter.Right = new
CodePrimitiveExpression
(adapterString);
1446
assignHtmlTextWriter.Right = new
CodePrimitiveExpression
(bd.HtmlTextWriterString);
UI\SimplePropertyEntry.cs (2)
72
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(Name));
73
methCallExpression.Parameters.Add(new
CodePrimitiveExpression
(Value));
System.Web.Services (29)
System\Web\Services\Description\HttpProtocolImporter.cs (3)
282
invokeParams[0] = new
CodePrimitiveExpression
(method.Name);
285
CodeExpression right = new
CodePrimitiveExpression
(method.Href);
337
WebCodeGenerator.AddCustomAttribute(metadata, typeof(DesignerCategoryAttribute), new CodeExpression[] { new
CodePrimitiveExpression
("code") });
System\Web\Services\Description\MimeTextImporter.cs (5)
68
CodeExpression pattern = new
CodePrimitiveExpression
(match.Pattern);
82
propertyValues[numPropValues] = new
CodePrimitiveExpression
(match.Group);
87
propertyValues[numPropValues] = new
CodePrimitiveExpression
(match.Capture);
92
propertyValues[numPropValues] = new
CodePrimitiveExpression
(match.IgnoreCase);
97
propertyValues[numPropValues] = new
CodePrimitiveExpression
(match.Repeats);
System\Web\Services\Description\ProtocolImporter.cs (4)
658
value = new
CodePrimitiveExpression
(url);
672
value = new CodeIndexerExpression(propertyReference, new CodeExpression[] { new
CodePrimitiveExpression
(appSettingUrlKey) });
684
CodeExpression[] parameters = new CodeExpression[] { urlSettingReference, new
CodePrimitiveExpression
(relativeUrl) };
690
CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(urlSettingReference, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null));
System\Web\Services\Description\SoapProtocolImporter.cs (10)
445
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new CodeAttributeArgument(new
CodePrimitiveExpression
("code")) }));
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)));
493
AddMetadataProperty(name, new
CodePrimitiveExpression
(value));
507
parameters = new CodeExpression[1] { new
CodePrimitiveExpression
(parameter) };
979
((CodeArrayIndexerExpression)value).Indices.Add(new
CodePrimitiveExpression
(count++));
986
((CodeArrayIndexerExpression)value).Indices.Add(new
CodePrimitiveExpression
(count++));
995
((CodeArrayIndexerExpression)value).Indices.Add(new
CodePrimitiveExpression
(0));
1003
invokeParams[0] = new
CodePrimitiveExpression
(methodName);
System\Web\Services\Description\WebCodeGenerator.cs (7)
50
decl.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Name)));
52
decl.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(version == null ? assemblyName.Version.ToString() : version)));
292
CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(member, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null));
326
invoke.Parameters.Add(new
CodePrimitiveExpression
(null));
337
CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(member, CodeBinaryOperatorType.IdentityEquality, new
CodePrimitiveExpression
(null));
356
codeClass.CustomAttributes.Add(new CodeAttributeDeclaration(typeof(DesignerCategoryAttribute).FullName, new CodeAttributeArgument[] { new CodeAttributeArgument(new
CodePrimitiveExpression
("code")) }));
411
valueRef.Indices.Add(new
CodePrimitiveExpression
(index));
System.Workflow.Activities (13)
Rules\Expressions.cs (1)
151
return new
CodePrimitiveExpression
(clonedValue);
Rules\Parser\Parser.cs (5)
547
CodePrimitiveExpression falseExpr = new
CodePrimitiveExpression
(false);
1311
unaryResult = new CodeBinaryOperatorExpression(unaryResult, CodeBinaryOperatorType.ValueEquality, new
CodePrimitiveExpression
(false));
1323
unaryResult = new CodeBinaryOperatorExpression(new
CodePrimitiveExpression
(0), CodeBinaryOperatorType.Subtract, unaryResult);
1827
primaryExpr = new
CodePrimitiveExpression
(token.Value);
2395
private static CodeExpression defaultSize = new
CodePrimitiveExpression
(0);
WebServiceReceive.cs (7)
760
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new CodeAttributeArgument("ConformsTo", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new CodeAttributeArgument("EmitConformanceClaims", new
CodePrimitiveExpression
(true)));
793
attrDecl.Arguments.Add(new CodeAttributeArgument("Description", new
CodePrimitiveExpression
(methodInfo.Name)));
794
attrDecl.Arguments.Add(new CodeAttributeArgument("EnableSession", new
CodePrimitiveExpression
(false)));
834
baseInvokeExpression.Parameters.Add(new
CodePrimitiveExpression
(methodInfo.Name));
835
baseInvokeExpression.Parameters.Add(new
CodePrimitiveExpression
(isActivation));
851
CodeExpression rightExpression = new CodeCastExpression(new CodeTypeReference(pinfo.ParameterType.GetElementType().FullName), new CodeIndexerExpression(new CodeVariableReferenceExpression("results"), new
CodePrimitiveExpression
(i + iStartIndex)));
866
CodeMethodReturnStatement methodReturnStatement = new CodeMethodReturnStatement(new CodeCastExpression(methodInfo.ReturnType, new CodeIndexerExpression(returnTargetExpression, new
CodePrimitiveExpression
(0))));
System.Workflow.ComponentModel (10)
AuthoringOM\Design\CustomActivityDesigner.cs (3)
651
attributeList.Add(new AttributeInfo(typeof(CategoryAttribute), new string[] { }, new object[] { new
CodePrimitiveExpression
(property.Category) }));
654
attributeList.Add(new AttributeInfo(typeof(DescriptionAttribute), new string[] { }, new object[] { new
CodePrimitiveExpression
(property.Description) }));
659
attributeList.Add(new AttributeInfo(typeof(BrowsableAttribute), new string[] { }, new object[] { new
CodePrimitiveExpression
(property.Browseable) }));
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (2)
98
beginInit.Right = new
CodePrimitiveExpression
(true);
106
endInit.Right = new
CodePrimitiveExpression
(false);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
107
param1 = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(typeof(DependencyProperty)), "FromName", new
CodePrimitiveExpression
(dependencyProperty.Name), new CodeTypeOfExpression(dependencyProperty.OwnerType));
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
43
CodeExpression expression = new
CodePrimitiveExpression
(value);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
41
statements.Add(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(variableName), "Add"), new CodeExpression[] { new
CodePrimitiveExpression
(handle) }));
Shared\XomlSerializationHelpers.cs (2)
290
xomlSourceAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(filePath)));
291
xomlSourceAttribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(checksum)));
System.Xml (38)
System\Xml\Serialization\CodeExporter.cs (10)
107
decl.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Name)));
109
decl.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(version == null ? assemblyName.Version.ToString() : version)));
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)));
271
field.InitExpression = new
CodePrimitiveExpression
(enumValue);
275
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(constant.XmlName)));
318
prop.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new
CodePrimitiveExpression
(name)));
359
CodeConditionStatement ifStatement = new CodeConditionStatement(new CodeBinaryOperatorExpression(propertyChanged, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null)));
System\Xml\Serialization\SoapCodeExporter.cs (4)
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)));
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 (24)
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)));
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)));
227
initExpression = valueExpression = new
CodePrimitiveExpression
(value);
235
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
238
initExpression = new CodeCastExpression(type.FullName, new
CodePrimitiveExpression
(value));
248
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
251
initExpression = new CodeCastExpression(type.FullName, new
CodePrimitiveExpression
(value));
269
valueExpression = new
CodePrimitiveExpression
(dtString);
272
initExpression = new CodeObjectCreateExpression(new CodeTypeReference(typeof(DateTime)), new CodeExpression[] {new
CodePrimitiveExpression
(ticks)});
275
valueExpression = new
CodePrimitiveExpression
(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
694
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(member.ChoiceIdentifier.MemberName)));
754
attribute.Arguments.Add(new CodeAttributeArgument("DataType", new
CodePrimitiveExpression
(dataType)));
778
attribute.Arguments.Add(new CodeAttributeArgument(new
CodePrimitiveExpression
(name)));
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)));
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)));
XamlBuildTask (35)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (35)
82
new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Name)),
83
new CodeAttributeArgument(new
CodePrimitiveExpression
(assemblyName.Version.ToString())));
197
new CodeAttributeArgument(new
CodePrimitiveExpression
(false)));
271
codeExp = new CodeCastExpression { TargetType = new CodeTypeReference(typeof(object)), Expression = new
CodePrimitiveExpression
(null) };
275
codeExp = new
CodePrimitiveExpression
(null);
283
codeExp = new
CodePrimitiveExpression
(paramInfo.TextValue);
289
codeExp = new
CodePrimitiveExpression
(true);
293
codeExp = new
CodePrimitiveExpression
(false);
406
Right = new
CodePrimitiveExpression
(true)
419
Right = new
CodePrimitiveExpression
(true)
432
typeof(bool), "isInitialized", new
CodePrimitiveExpression
(false)));
443
new
CodePrimitiveExpression
(true)
503
typeof(XmlReader), "xmlReader", new
CodePrimitiveExpression
(null));
506
typeof(XamlReader), "reader", new
CodePrimitiveExpression
(null));
509
typeof(XamlObjectWriter), "objectWriter", new
CodePrimitiveExpression
(null));
563
new
CodePrimitiveExpression
(true)));
624
new
CodePrimitiveExpression
(field.Name)))));
638
new
CodePrimitiveExpression
(null));
645
new
CodePrimitiveExpression
(null));
652
new
CodePrimitiveExpression
(null));
744
InitExpression = new
CodePrimitiveExpression
(0),
763
Right = new
CodePrimitiveExpression
(1),
786
Parameters = { new
CodePrimitiveExpression
("." + classData.EmbeddedResourceFileName), },
797
new
CodePrimitiveExpression
(classData.EmbeddedResourceFileName),
823
new
CodePrimitiveExpression
("Resource not found."),
839
new CodeAttributeArgument(new
CodePrimitiveExpression
("Microsoft.Design")),
840
new CodeAttributeArgument(new
CodePrimitiveExpression
("CA1033"))
1107
new CodeBinaryOperatorExpression(assemblyList, CodeBinaryOperatorType.IdentityEquality, new
CodePrimitiveExpression
(null)),
1156
CodeVariableReferenceExpression xsc = SchemaContext.GetStatements.DeclareVar(typeof(XamlSchemaContext), "xsc", new
CodePrimitiveExpression
(null));
1161
new
CodePrimitiveExpression
(null));
1166
new CodeBinaryOperatorExpression(xsc, CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null)),
1177
new
CodePrimitiveExpression
(0));
1235
CodeVariableReferenceExpression asm = loadMethod.Statements.DeclareVar(typeof(Assembly), "asm", new
CodePrimitiveExpression
(null));
1238
CodeBinaryOperatorType.IdentityInequality, new
CodePrimitiveExpression
(null));
1309
new
CodePrimitiveExpression
(reference.FullName)
62 references to CodePrimitiveExpression
System (17)
compmod\microsoft\csharp\csharpcodeprovider.cs (4)
1189
private void GeneratePrimitiveExpression(
CodePrimitiveExpression
e) {
1221
private void GeneratePrimitiveExpressionBase(
CodePrimitiveExpression
e) {
1714
else if (e is
CodePrimitiveExpression
) {
1715
GeneratePrimitiveExpression((
CodePrimitiveExpression
)e);
compmod\microsoft\visualbasic\VBCodeProvider.cs (5)
892
if (e.Right is
CodePrimitiveExpression
&& ((
CodePrimitiveExpression
)e.Right).Value == null){
896
if (e.Left is
CodePrimitiveExpression
&& ((
CodePrimitiveExpression
)e.Left).Value == null){
1060
protected override void GeneratePrimitiveExpression(
CodePrimitiveExpression
e) {
compmod\system\codedom\CodePrimitiveExpression.cs (2)
32
/// Initializes a new instance of <see cref='System.CodeDom.
CodePrimitiveExpression
'/>.
40
/// Initializes a new instance of <see cref='System.CodeDom.
CodePrimitiveExpression
'/> using the specified
compmod\system\codedom\compiler\CodeGenerator.cs (3)
656
else if (e is
CodePrimitiveExpression
) {
657
GeneratePrimitiveExpression((
CodePrimitiveExpression
)e);
1498
protected virtual void GeneratePrimitiveExpression(
CodePrimitiveExpression
e) {
compmod\system\codedom\compiler\CodeValidator.cs (3)
642
else if (e is
CodePrimitiveExpression
) {
643
ValidatePrimitiveExpression((
CodePrimitiveExpression
)e);
783
private void ValidatePrimitiveExpression(
CodePrimitiveExpression
e) {
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
1623
CodePrimitiveExpression
NullReference
System.ServiceModel (1)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
209
string nsValue = ((
CodePrimitiveExpression
)attrArg.Value).Value.ToString();
System.Web (1)
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
1409
CodePrimitiveExpression
capabilityExpr = new CodePrimitiveExpression(capsString);
System.Web.Extensions (2)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (2)
1694
CodePrimitiveExpression
valueExpression = argument.Value as
CodePrimitiveExpression
;
System.Workflow.Activities (38)
Rules\DeclarativeExpressionConditionDeclaration.cs (1)
166
string message = string.Format(CultureInfo.CurrentCulture, Messages.ConditionExpressionNull, typeof(
CodePrimitiveExpression
).ToString());
Rules\Expressions.cs (23)
118
string message = string.Format(CultureInfo.CurrentCulture, Messages.CannotWriteToExpression, typeof(
CodePrimitiveExpression
).ToString());
125
CodePrimitiveExpression
primitiveExpr = (
CodePrimitiveExpression
)expression;
137
CodePrimitiveExpression
primitiveExpr = (
CodePrimitiveExpression
)expression;
143
CodePrimitiveExpression
primitiveExpr = (
CodePrimitiveExpression
)expression;
149
CodePrimitiveExpression
primitiveExpr = (
CodePrimitiveExpression
)expression;
156
CodePrimitiveExpression
primitiveExpr = (
CodePrimitiveExpression
)expression;
157
CodePrimitiveExpression
comperandPrimitive = (
CodePrimitiveExpression
)comperand;
398
CodePrimitiveExpression
primitive = expression as
CodePrimitiveExpression
;
407
CodePrimitiveExpression
primitive = expression as
CodePrimitiveExpression
;
747
CodePrimitiveExpression
rhsPrimitive = rightExpr as
CodePrimitiveExpression
;
802
CodePrimitiveExpression
lhsPrimitive = leftExpr as
CodePrimitiveExpression
;
3336
CodePrimitiveExpression
prim = createExpression.SizeExpression as
CodePrimitiveExpression
;
Rules\Literal.cs (6)
596
else if (DecimalIntegerLiteralZero(rhs, rhsExpression as
CodePrimitiveExpression
))
627
else if (DecimalIntegerLiteralZero(rhs, rhsExpression as
CodePrimitiveExpression
))
661
CodePrimitiveExpression
primitive = lhsExpression as
CodePrimitiveExpression
;
689
else if (DecimalIntegerLiteralZero(lhs, lhsExpression as
CodePrimitiveExpression
))
801
private static bool DecimalIntegerLiteralZero(Type type,
CodePrimitiveExpression
expression)
Rules\Parser\Parser.cs (3)
547
CodePrimitiveExpression
falseExpr = new CodePrimitiveExpression(false);
2545
CodePrimitiveExpression
argPrimitive = arg as
CodePrimitiveExpression
;
Rules\RuleValidation.cs (4)
1949
CodePrimitiveExpression
primitive = rhsExpression as
CodePrimitiveExpression
;
2265
CodePrimitiveExpression
primitive = rhsExpression as
CodePrimitiveExpression
;
Rules\Walker.cs (1)
76
new TypeWrapperTuple(typeof(
CodePrimitiveExpression
), new PrimitiveExpression()),
System.Workflow.ComponentModel (2)
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
164
if (codeArgument.Value is
CodePrimitiveExpression
)
165
argumentValues[index] = (codeArgument.Value as
CodePrimitiveExpression
).Value;