455 references to Add
Microsoft.Build.Tasks.Core (10)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
272
executeMethod.Statements.
Add
(new CodeSnippetStatement(taskInfo.SourceCode));
273
executeMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
682
property.GetStatements.
Add
(new CodeMethodReturnStatement(fieldReference));
690
property.SetStatements.
Add
(fieldAssign);
system.design\stronglytypedresourcebuilder.cs (6)
498
resMgr.GetStatements.
Add
(new CodeConditionStatement(isResMgrNull, init));
499
resMgr.GetStatements.
Add
(new CodeMethodReturnStatement(field_resMgr));
508
culture.GetStatements.
Add
(new CodeMethodReturnStatement(field_resCulture));
511
culture.SetStatements.
Add
(new CodeAssignStatement(field_resCulture, newCulture));
683
prop.GetStatements.
Add
(returnObj);
687
prop.GetStatements.
Add
(ret);
PresentationBuildTasks (46)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (46)
896
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
921
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
927
_ccRoot.StyleConnectorFn.Statements.
Add
(cssCase);
1000
_ccRoot.StyleConnectorFn.Statements.
Add
(casES);
1001
_ccRoot.StyleConnectorFn.Statements.
Add
(casEvent);
1002
_ccRoot.StyleConnectorFn.Statements.
Add
(casHandler);
1003
_ccRoot.StyleConnectorFn.Statements.
Add
(new CodeExpressionStatement(cmieAdd));
1007
ccsConnector.TrueStatements.
Add
(casES);
1008
ccsConnector.TrueStatements.
Add
(casEvent);
1009
ccsConnector.TrueStatements.
Add
(casHandler);
1010
ccsConnector.TrueStatements.
Add
(new CodeExpressionStatement(cmieAdd));
1014
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1057
_ccRoot.StyleConnectorFn.Statements.
Add
( csAddCLREvent );
1061
ccsConnector.TrueStatements.
Add
( csAddCLREvent );
1066
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1084
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
1091
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
1131
_ccRoot.HookupFn.Statements.
Add
(css);
1160
_ccRoot.HookupFn.Statements.
Add
(cssCase);
1189
_ccRoot.HookupFn.Statements.
Add
(casName);
1193
ccsConnector.TrueStatements.
Add
(casName);
1205
_ccRoot.HookupFn.Statements.
Add
(csEvent);
1209
ccsConnector.TrueStatements.
Add
(csEvent);
1218
_ccRoot.HookupFn.Statements.
Add
(new CodeMethodReturnStatement());
1222
ccsConnector.TrueStatements.
Add
(new CodeMethodReturnStatement());
1223
_ccRoot.HookupFn.Statements.
Add
(ccsConnector);
1263
_ccRoot.HookupFn.Statements.
Add
(css);
1271
_ccRoot.HookupFn.Statements.
Add
(casContentLoaded);
2053
cmmEventHandlerHelper.Statements.
Add
(new CodeExpressionStatement(cmieOnEvent));
2576
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cmieCD));
2605
ccsCL.TrueStatements.
Add
(new CodeMethodReturnStatement());
2608
cmmLC.Statements.
Add
(ccsCL);
2621
cmmLC.Statements.
Add
(casCL);
2678
cmmLC.Statements.
Add
(cvdsresLocator);
2696
cmmLC.Statements.
Add
(cesLC);
2791
cmmCI.Statements.
Add
(new CodeMethodReturnStatement(cmieCI));
2824
cmmGPV.Statements.
Add
(new CodeMethodReturnStatement(cmieGPV));
2857
cmmSPV.Statements.
Add
(new CodeExpressionStatement(cmieSPV));
2916
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cceCD));
2945
cmmAEH.Statements.
Add
(new CodeExpressionStatement(cmieAEH));
3150
cmmMain.Statements.
Add
(cvds);
3170
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csPropSet);
3183
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csEvent);
3242
cmmMain.Statements.
Add
(new CodeExpressionStatement(cmieIT));
3256
cmmMain.Statements.
Add
(csRun);
3313
cmmMain.Statements.
Add
(cvdsAppSplash);
System.CodeDom (3)
System\CodeDom\CodeStatementCollection.cs (3)
30
public int Add(CodeExpression value) =>
Add
(new CodeExpressionStatement(value));
38
Add
(value[i]);
49
Add
(value[i]);
System.Management (347)
System\Management\WMIGenerator.cs (347)
953
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeSnippetExpression(propValue)));
957
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(propValue)));
998
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(Value));
1000
cmp.SetStatements.
Add
(new CodeAssignStatement(Value,
1036
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(cpre));
1037
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1038
cmp.GetStatements.
Add
(cis);
1066
cis1.TrueStatements.
Add
(new CodeThrowExceptionStatement(coce));
1067
cis.TrueStatements.
Add
(cis1);
1070
cis.TrueStatements.
Add
(new CodeAssignStatement(cpre,
1073
cmp.SetStatements.
Add
(cis);
1098
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()), new CodeVariableReferenceExpression("ManagedObject")));
1151
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cie)));
1302
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
1303
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1304
cmp2.GetStatements.
Add
(cis);
1328
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1341
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cmie)));
1358
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(
1365
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(cmie));
1368
cmp.GetStatements.
Add
(cis);
1393
cis2.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
1395
cmm.Statements.
Add
(cis2);
1396
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1436
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cmie)));
1441
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(cmp.Type, cie)));
1455
cmm2.Statements.
Add
(new CodeAssignStatement(cie, new CodePrimitiveExpression(null)));
1514
ccs.TrueStatements.
Add
(new CodeAssignStatement(cie, new CodePrimitiveExpression(null)));
1515
ccs.FalseStatements.
Add
(new CodeAssignStatement(cie, new CodeSnippetExpression("value")));
1516
cmp.SetStatements.
Add
(ccs);
1521
cmp.SetStatements.
Add
(new CodeAssignStatement(cie, new CodeSnippetExpression("value")));
1546
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
1548
cmp.SetStatements.
Add
(cis);
1551
cmm2.Statements.
Add
(cis);
2052
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath)));
2058
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.String", strPathObject, new CodePrimitiveExpression(strPath)));
2085
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strPathObject), cmietoAdd));
2087
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject)));
2128
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2165
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"), new CodePrimitiveExpression(null)));
2185
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2224
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"), new CodePrimitiveExpression(null)));
2245
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2277
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2307
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2335
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2369
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2405
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2446
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2494
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2543
cis.TrueStatements.
Add
(new CodeAssignStatement(
2550
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()), coce));
2551
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2557
cis.FalseStatements.
Add
(new CodeThrowExceptionStatement(coce));
2560
cctor.Statements.
Add
(cis);
2610
cis.TrueStatements.
Add
(new CodeAssignStatement(
2617
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()), coce));
2618
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2621
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
2627
cis.FalseStatements.
Add
(new CodeThrowExceptionStatement(coce));
2630
cctor.Statements.
Add
(cis);
2701
cis1.TrueStatements.
Add
(new CodeThrowExceptionStatement(coce));
2703
cis.TrueStatements.
Add
(cis1);
2704
cmmInit.Statements.
Add
(cis);
2711
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(
2717
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(
2721
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2736
cctor.Statements.
Add
(new CodeAssignStatement(cpre, new CodePrimitiveExpression(true)));
2836
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.Boolean", "IsMethodStatic", new CodePrimitiveExpression(bStatic)));
2852
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),
2862
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath));
2873
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), strClassObj, coce1));
2888
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement("System.Boolean",
2891
cis.TrueStatements.
Add
(new CodeAssignStatement(cprePrivileges, new CodePrimitiveExpression(true)));
2912
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams), cmie));
2975
cis.TrueStatements.
Add
(new CodeAssignStatement(cie, new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "),
2980
cis.TrueStatements.
Add
(new CodeAssignStatement(cie, new CodeCastExpression(cpde.Type, new CodeVariableReferenceExpression(cpde.Name))));
3013
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), strOutParams, cmie));
3090
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3101
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), cmie2));
3120
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), coce));
3124
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3137
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), cmie2));
3141
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3164
cis.TrueStatements.
Add
(cmis);
3173
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()),
3182
cis.TrueStatements.
Add
(new CodeAssignStatement(cprePrivileges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString())));
3194
cmm.Statements.
Add
(cRetVal);
3195
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"), new CodePrimitiveExpression(null)));
3200
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3201
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3206
cmm.Statements.
Add
(cRetVal);
3207
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),
3212
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3213
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3218
cmm.Statements.
Add
(cRetVal);
3227
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"), coce));
3231
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3232
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3243
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(cmie));
3250
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(cmie));
3255
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(
3258
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3262
cmm.Statements.
Add
(cis);
3291
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3323
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3353
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3386
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3447
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), coce));
3449
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3455
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),
3458
cis.TrueStatements.
Add
(cis1);
3459
cmm.Statements.
Add
(cis);
3465
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), pathObj, coce));
3467
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3471
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3482
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),
3494
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()),
3496
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3501
cmm.Statements.
Add
(cis);
3511
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
3543
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3575
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3627
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), coce));
3629
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3634
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),
3638
cis.TrueStatements.
Add
(cis1);
3639
cmm.Statements.
Add
(cis);
3651
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(),
3657
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(
3661
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3668
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3677
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
3783
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(baseTypeMemberVariable), cmie));
3786
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(typeMemberVariable), new CodeVariableReferenceExpression(baseTypeParam)));
3809
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3833
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3859
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3883
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3904
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3929
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3948
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3967
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3986
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4005
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4095
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe2, new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value"))));
4123
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe7, new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" "))));
4125
cis.TrueStatements.
Add
(returnStatement);
4128
cmm.Statements.
Add
(cis);
4188
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe7, new CodeMethodReturnStatement(new CodePrimitiveExpression(""))));
4190
cis.TrueStatements.
Add
(returnStatement);
4193
cmm.Statements.
Add
(cis);
4221
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression("")));
4223
cmm.Statements.
Add
(cis);
4226
cmm.Statements.
Add
(returnStatement);
4269
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection),
4285
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4302
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4318
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeThisReferenceExpression()));
4356
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4358
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr));
4388
cfls.Statements.
Add
(new CodeExpressionStatement(cmie));
4390
cmm.Statements.
Add
(cfls);
4406
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
4451
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator),
4472
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(coce));
4490
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4506
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4959
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
4960
cmm.Statements.
Add
(cis);
4994
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
4995
cmm.Statements.
Add
(cis);
5337
cmp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.String", strRetVar,
5357
cis.TrueStatements.
Add
(cis1);
5359
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5383
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5386
cis1.TrueStatements.
Add
(cis2);
5388
cmp.GetStatements.
Add
(cis);
5390
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strRetVar)));
5446
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5457
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre, coce)));
5458
cmm.Statements.
Add
(cis);
5516
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5523
cis.FalseStatements.
Add
(new CodeVariableDeclarationStatement("System.Array", strDerivation, cs));
5534
cis1.TrueStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr, new CodePrimitiveExpression(0)));
5571
cis2.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5573
cis1.TrueStatements.
Add
(cfls);
5574
cfls.Statements.
Add
(cis2);
5576
cis.FalseStatements.
Add
(cis1);
5578
cmm.Statements.
Add
(cis);
5579
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
5614
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, cmie)));
5615
statColl.
Add
(cis1);
5616
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5621
statColl.
Add
(new CodeAssignStatement(varToAssign, new CodePrimitiveExpression(null)));
5622
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, cmie)));
5623
statColl.
Add
(cis1);
5629
statColl.
Add
(cis1);
5642
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, ce)));
5643
cis1.FalseStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, null)));
5647
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, ce)));
5648
cis1.FalseStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, null)));
5688
cis1.TrueStatements.
Add
(
5700
cis1.TrueStatements.
Add
(
5751
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5754
cis1.TrueStatements.
Add
(cfls);
5757
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray)));
5758
statColl.
Add
(cis1);
5759
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5764
statColl.
Add
(new CodeAssignStatement(varToAssign, new CodePrimitiveExpression(null)));
5765
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, new CodeVariableReferenceExpression(strArray)));
5766
statColl.
Add
(cis1);
5782
statColl.
Add
(new CodeAssignStatement(prop,
5807
cis1.TrueStatements.
Add
(
5818
cis1.TrueStatements.
Add
(
5860
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5863
cis1.TrueStatements.
Add
(cfls);
5865
cis1.TrueStatements.
Add
(new CodeAssignStatement(prop, new CodeVariableReferenceExpression(strArray)));
5866
cis1.FalseStatements.
Add
(new CodeAssignStatement(prop, new CodePrimitiveExpression(null)));
5867
statColl.
Add
(cis1);
5991
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(Value));
5992
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5994
cmp.GetStatements.
Add
(cis);
6003
cis.TrueStatements.
Add
(new CodeAssignStatement(Value,
6006
cmp.SetStatements.
Add
(cis);
6020
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Array", strArray,
6023
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(strEnumName, 1), ArrToRet,
6030
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr, new CodePrimitiveExpression(0)));
6053
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(ArrToRet),
6058
cmProp.GetStatements.
Add
(cfls);
6060
cmProp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(ArrToRet)));
6198
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6211
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope), coce));
6213
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
6219
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),
6223
cmm.Statements.
Add
(cis1);
6228
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath));
6236
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(), strTemp, coce1));
6247
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
6333
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), "initializer", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"), "MinValue")));
6336
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), year, new CodePropertyReferenceExpression(cvreInitializer, "Year")));
6339
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), month, new CodePropertyReferenceExpression(cvreInitializer, "Month")));
6342
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), day, new CodePropertyReferenceExpression(cvreInitializer, "Day")));
6345
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hour, new CodePropertyReferenceExpression(cvreInitializer, "Hour")));
6348
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minute, new CodePropertyReferenceExpression(cvreInitializer, "Minute")));
6351
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), second, new CodePropertyReferenceExpression(cvreInitializer, "Second")));
6354
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0)));
6357
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtf, new CodeVariableReferenceExpression(dmtfParam)));
6361
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), datetimeVariable, cpreMinVal));
6364
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), tempStr, new CodeFieldReferenceExpression(
6377
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6379
cmmdt.Statements.
Add
(cis);
6396
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6398
cmmdt.Statements.
Add
(cis);
6413
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6415
cmmdt.Statements.
Add
(cis);
6438
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6464
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks), cboe2));
6466
tryblock.TryStatements.
Add
(cis);
6549
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6551
tryblock.TryStatements.
Add
(cis);
6573
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
6581
cmmdt.Statements.
Add
(tryblock);
6597
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), coce));
6607
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), cmie2));
6619
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tickoffset, cmie1));
6628
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), utcOffset, new CodePrimitiveExpression(0)));
6630
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), offsetAdjust, new CodePrimitiveExpression(0)));
6638
cmmdt.Statements.
Add
(
6651
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6686
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6694
tryblock2.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(utcOffset), cmie));
6702
cis.TrueStatements.
Add
(tryblock2);
6708
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust), new CodeCastExpression(new CodeTypeReference("System.Int32"), cboe)));
6714
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), cmie));
6716
cmmdt.Statements.
Add
(cis);
6721
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable)));
6741
cmmdt.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempVarName), cmie));
6755
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign), cmie));
6757
cmmdt.
Add
(cis);
6798
cmmts.Statements.
Add
(
6818
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "maxTimeSpan", cpreMaxVal));
6836
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6838
cmmts.Statements.
Add
(cis);
6848
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "minTimeSpan", cpreMinVal));
6866
cis2.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6868
cmmts.Statements.
Add
(cis2);
6885
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6902
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6919
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6926
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6938
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, coce));
6961
cmmts.Statements.
Add
(
6974
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie));
6996
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec), cmie));
6997
cmmts.Statements.
Add
(cis);
7011
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
7015
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
7017
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan)));
7040
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strUtc,
7060
cmmdt.Statements.
Add
(
7074
cmmdt.Statements.
Add
(
7106
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam), cmie1));
7107
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc), new CodePrimitiveExpression("+000")));
7136
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7148
cis2.FalseStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), "strTemp", cmie1));
7163
cis2.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7165
cis1.FalseStatements.
Add
(cis2);
7166
cmmdt.Statements.
Add
(cis1);
7184
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtfDateTime, cmie2));
7218
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7234
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), dtTemp, coce));
7256
cmmdt.Statements.
Add
(
7270
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie1));
7292
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec), cmie1));
7293
cmmdt.Statements.
Add
(cis1);
7305
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime), cmie2));
7312
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7316
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime)));
7338
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7361
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), days, new CodePrimitiveExpression(0)));
7363
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hours, new CodePrimitiveExpression(0)));
7365
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minutes, new CodePrimitiveExpression(0)));
7367
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), seconds, new CodePrimitiveExpression(0)));
7369
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0)));
7388
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7390
cmmts.Statements.
Add
(cis);
7407
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7409
cmmts.Statements.
Add
(cis);
7425
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7427
cmmts.Statements.
Add
(cis);
7448
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7450
cmmts.Statements.
Add
(cis);
7459
tryblock.TryStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strTemp,
7489
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp), cmie));
7498
tryblock.TryStatements.
Add
7576
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7599
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
7607
cmmts.Statements.
Add
(tryblock);
7622
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), timespan, coce));
7633
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, cmie));
7639
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(timespan), cmie));
7645
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan)));
7661
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp), cmie));
7667
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strVarToAssign), cmie));
7687
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()),
7689
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
System.Runtime.Serialization.Schema (19)
System\Runtime\Serialization\Schema\CodeExporter.cs (19)
1752
readXmlMethod.Statements.
Add
(setNode);
1788
getSchemaMethod.Statements.
Add
(new CodeMethodReturnStatement(NullReference));
1811
getSchemaStaticMethod.Statements.
Add
(
1831
baseConstructor.Statements.
Add
(setObjectData);
1835
baseConstructor.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference));
1892
returnIfNull.TrueStatements.
Add
(new CodeMethodReturnStatement());
1929
loop.Statements.
Add
(getCurrent);
1930
loop.Statements.
Add
(addValue);
1932
getObjectDataMethod.Statements.
Add
(returnIfNull);
1933
getObjectDataMethod.Statements.
Add
(getEnumerator);
1934
getObjectDataMethod.Statements.
Add
(loop);
1964
extensionDataObjectProperty.GetStatements.
Add
(propertyGet);
1969
extensionDataObjectProperty.SetStatements.
Add
(propertySet);
1985
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
1987
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
2024
property.GetStatements.
Add
(propertyGet);
2045
ifStatement.TrueStatements.
Add
(propertySet);
2047
property.SetStatements.
Add
(ifStatement);
2050
property.SetStatements.
Add
(propertySet);
System.Windows.Forms.Design (30)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
43
completeStatements.
Add
(statement);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
186
statements.
Add
(varDecl);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2815
statements.
Add
(statement);
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (7)
56
ContainerStatements.
Add
(statement);
60
FieldAssignments.
Add
(fieldAssignment);
64
VariableAssignments.
Add
(variableAssignment);
68
LocalVariables.
Add
(statement);
75
BeginStatements.
Add
(statement);
79
EndStatements.
Add
(statement);
83
Statements.
Add
(statement);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
205
resultCollection.
Add
(resultStatement);
646
statements.
Add
(new CodeExpressionStatement(methodInvoke));
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
242
statements.
Add
(local);
296
statements.
Add
(assign);
521
statements.
Add
(statement);
548
statements.
Add
(statement);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (2)
63
statements.
Add
(var);
74
statements.
Add
(assign);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
56
statements.
Add
(attach);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
210
statements.
Add
(cs);
351
statements.
Add
(assign);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
299
statements.
Add
(new CodeVariableDeclarationStatement(typeof(ComponentResourceManager), ResourceManagerName, initExpression));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
621
resourceManagerProperty.GetStatements.
Add
(new CodeConditionStatement(isResourceManagerNull, assignNewResourceManager));
622
resourceManagerProperty.GetStatements.
Add
(new CodeMethodReturnStatement(resourceManagerField));
631
culture.GetStatements.
Add
(new CodeMethodReturnStatement(cultureInfoField));
634
culture.SetStatements.
Add
(new CodeAssignStatement(cultureInfoField, newCulture));
801
property.GetStatements.
Add
(returnObject);
805
property.GetStatements.
Add
(returnStatement);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
388
statements.
Add
(statement);
448
statements.
Add
(statement);