457 references to Add
Microsoft.Build.Tasks.Core (10)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
287
executeMethod.Statements.
Add
(new CodeSnippetStatement(taskInfo.SourceCode));
288
executeMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
697
property.GetStatements.
Add
(new CodeMethodReturnStatement(fieldReference));
705
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 (349)
System\Management\WMIGenerator.cs (349)
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);
4270
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection),
4287
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4302
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4319
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4335
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeThisReferenceExpression()));
4373
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4375
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr));
4405
cfls.Statements.
Add
(new CodeExpressionStatement(cmie));
4407
cmm.Statements.
Add
(cfls);
4423
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
4469
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator),
4486
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4506
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(coce));
4524
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4540
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4993
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
4994
cmm.Statements.
Add
(cis);
5028
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
5029
cmm.Statements.
Add
(cis);
5371
cmp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.String", strRetVar,
5391
cis.TrueStatements.
Add
(cis1);
5393
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5417
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5420
cis1.TrueStatements.
Add
(cis2);
5422
cmp.GetStatements.
Add
(cis);
5424
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strRetVar)));
5480
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5491
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre, coce)));
5492
cmm.Statements.
Add
(cis);
5550
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5557
cis.FalseStatements.
Add
(new CodeVariableDeclarationStatement("System.Array", strDerivation, cs));
5568
cis1.TrueStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr, new CodePrimitiveExpression(0)));
5605
cis2.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5607
cis1.TrueStatements.
Add
(cfls);
5608
cfls.Statements.
Add
(cis2);
5610
cis.FalseStatements.
Add
(cis1);
5612
cmm.Statements.
Add
(cis);
5613
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
5648
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, cmie)));
5649
statColl.
Add
(cis1);
5650
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5655
statColl.
Add
(new CodeAssignStatement(varToAssign, new CodePrimitiveExpression(null)));
5656
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, cmie)));
5657
statColl.
Add
(cis1);
5663
statColl.
Add
(cis1);
5676
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, ce)));
5677
cis1.FalseStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType, null)));
5681
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, ce)));
5682
cis1.FalseStatements.
Add
(new CodeAssignStatement(varToAssign, CreateObjectForProperty(strType, null)));
5722
cis1.TrueStatements.
Add
(
5734
cis1.TrueStatements.
Add
(
5785
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5788
cis1.TrueStatements.
Add
(cfls);
5791
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray)));
5792
statColl.
Add
(cis1);
5793
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5798
statColl.
Add
(new CodeAssignStatement(varToAssign, new CodePrimitiveExpression(null)));
5799
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign, new CodeVariableReferenceExpression(strArray)));
5800
statColl.
Add
(cis1);
5816
statColl.
Add
(new CodeAssignStatement(prop,
5841
cis1.TrueStatements.
Add
(
5852
cis1.TrueStatements.
Add
(
5894
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5897
cis1.TrueStatements.
Add
(cfls);
5899
cis1.TrueStatements.
Add
(new CodeAssignStatement(prop, new CodeVariableReferenceExpression(strArray)));
5900
cis1.FalseStatements.
Add
(new CodeAssignStatement(prop, new CodePrimitiveExpression(null)));
5901
statColl.
Add
(cis1);
6025
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(Value));
6026
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
6028
cmp.GetStatements.
Add
(cis);
6037
cis.TrueStatements.
Add
(new CodeAssignStatement(Value,
6040
cmp.SetStatements.
Add
(cis);
6054
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Array", strArray,
6057
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(strEnumName, 1), ArrToRet,
6064
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32", strnCtr, new CodePrimitiveExpression(0)));
6087
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(ArrToRet),
6092
cmProp.GetStatements.
Add
(cfls);
6094
cmProp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(ArrToRet)));
6232
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6245
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope), coce));
6247
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
6253
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),
6257
cmm.Statements.
Add
(cis1);
6262
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()), strPath, cocePath));
6270
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(), strTemp, coce1));
6281
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
6367
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), "initializer", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"), "MinValue")));
6370
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), year, new CodePropertyReferenceExpression(cvreInitializer, "Year")));
6373
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), month, new CodePropertyReferenceExpression(cvreInitializer, "Month")));
6376
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), day, new CodePropertyReferenceExpression(cvreInitializer, "Day")));
6379
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hour, new CodePropertyReferenceExpression(cvreInitializer, "Hour")));
6382
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minute, new CodePropertyReferenceExpression(cvreInitializer, "Minute")));
6385
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), second, new CodePropertyReferenceExpression(cvreInitializer, "Second")));
6388
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0)));
6391
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtf, new CodeVariableReferenceExpression(dmtfParam)));
6395
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), datetimeVariable, cpreMinVal));
6398
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), tempStr, new CodeFieldReferenceExpression(
6411
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6413
cmmdt.Statements.
Add
(cis);
6430
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6432
cmmdt.Statements.
Add
(cis);
6447
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6449
cmmdt.Statements.
Add
(cis);
6472
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6498
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks), cboe2));
6500
tryblock.TryStatements.
Add
(cis);
6583
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6585
tryblock.TryStatements.
Add
(cis);
6607
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
6615
cmmdt.Statements.
Add
(tryblock);
6631
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), coce));
6641
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), cmie2));
6653
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tickoffset, cmie1));
6662
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), utcOffset, new CodePrimitiveExpression(0)));
6664
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), offsetAdjust, new CodePrimitiveExpression(0)));
6672
cmmdt.Statements.
Add
(
6685
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6720
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6728
tryblock2.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(utcOffset), cmie));
6736
cis.TrueStatements.
Add
(tryblock2);
6742
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust), new CodeCastExpression(new CodeTypeReference("System.Int32"), cboe)));
6748
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable), cmie));
6750
cmmdt.Statements.
Add
(cis);
6755
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable)));
6775
cmmdt.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempVarName), cmie));
6789
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign), cmie));
6791
cmmdt.
Add
(cis);
6832
cmmts.Statements.
Add
(
6852
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "maxTimeSpan", cpreMaxVal));
6870
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6872
cmmts.Statements.
Add
(cis);
6882
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), "minTimeSpan", cpreMinVal));
6900
cis2.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6902
cmmts.Statements.
Add
(cis2);
6919
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6936
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6953
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6960
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
6972
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, coce));
6995
cmmts.Statements.
Add
(
7008
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie));
7030
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec), cmie));
7031
cmmts.Statements.
Add
(cis);
7045
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
7049
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan), cmie2));
7051
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan)));
7074
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strUtc,
7094
cmmdt.Statements.
Add
(
7108
cmmdt.Statements.
Add
(
7140
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam), cmie1));
7141
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc), new CodePrimitiveExpression("+000")));
7170
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7182
cis2.FalseStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), "strTemp", cmie1));
7197
cis2.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7199
cis1.FalseStatements.
Add
(cis2);
7200
cmmdt.Statements.
Add
(cis1);
7218
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), dmtfDateTime, cmie2));
7252
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7268
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"), dtTemp, coce));
7290
cmmdt.Statements.
Add
(
7304
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strmicrosec, cmie1));
7326
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec), cmie1));
7327
cmmdt.Statements.
Add
(cis1);
7339
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime), cmie2));
7346
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7350
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime)));
7372
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7395
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), days, new CodePrimitiveExpression(0)));
7397
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), hours, new CodePrimitiveExpression(0)));
7399
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), minutes, new CodePrimitiveExpression(0)));
7401
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"), seconds, new CodePrimitiveExpression(0)));
7403
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"), ticks, new CodePrimitiveExpression(0)));
7422
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7424
cmmts.Statements.
Add
(cis);
7441
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7443
cmmts.Statements.
Add
(cis);
7459
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7461
cmmts.Statements.
Add
(cis);
7482
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7484
cmmts.Statements.
Add
(cis);
7493
tryblock.TryStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"), strTemp,
7523
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp), cmie));
7532
tryblock.TryStatements.
Add
7610
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7633
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
7641
cmmts.Statements.
Add
(tryblock);
7656
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), timespan, coce));
7667
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"), tsTemp, cmie));
7673
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(timespan), cmie));
7679
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan)));
7695
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp), cmie));
7701
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strVarToAssign), cmie));
7721
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()),
7723
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);