888 references to Add
PresentationBuildTasks (46)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (46)
918
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
943
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
949
_ccRoot.StyleConnectorFn.Statements.
Add
(cssCase);
1021
_ccRoot.StyleConnectorFn.Statements.
Add
(casES);
1022
_ccRoot.StyleConnectorFn.Statements.
Add
(casEvent);
1023
_ccRoot.StyleConnectorFn.Statements.
Add
(casHandler);
1024
_ccRoot.StyleConnectorFn.Statements.
Add
(new CodeExpressionStatement(cmieAdd));
1028
ccsConnector.TrueStatements.
Add
(casES);
1029
ccsConnector.TrueStatements.
Add
(casEvent);
1030
ccsConnector.TrueStatements.
Add
(casHandler);
1031
ccsConnector.TrueStatements.
Add
(new CodeExpressionStatement(cmieAdd));
1035
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1078
_ccRoot.StyleConnectorFn.Statements.
Add
( csAddCLREvent );
1082
ccsConnector.TrueStatements.
Add
( csAddCLREvent );
1087
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1105
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
1112
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
1150
_ccRoot.HookupFn.Statements.
Add
(css);
1179
_ccRoot.HookupFn.Statements.
Add
(cssCase);
1206
_ccRoot.HookupFn.Statements.
Add
(casName);
1210
ccsConnector.TrueStatements.
Add
(casName);
1222
_ccRoot.HookupFn.Statements.
Add
(csEvent);
1226
ccsConnector.TrueStatements.
Add
(csEvent);
1235
_ccRoot.HookupFn.Statements.
Add
(new CodeMethodReturnStatement());
1239
ccsConnector.TrueStatements.
Add
(new CodeMethodReturnStatement());
1240
_ccRoot.HookupFn.Statements.
Add
(ccsConnector);
1280
_ccRoot.HookupFn.Statements.
Add
(css);
1288
_ccRoot.HookupFn.Statements.
Add
(casContentLoaded);
2017
cmmEventHandlerHelper.Statements.
Add
(new CodeExpressionStatement(cmieOnEvent));
2529
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cmieCD));
2556
ccsCL.TrueStatements.
Add
(new CodeMethodReturnStatement());
2559
cmmLC.Statements.
Add
(ccsCL);
2572
cmmLC.Statements.
Add
(casCL);
2606
cmmLC.Statements.
Add
(cvdsresLocator);
2623
cmmLC.Statements.
Add
(cesLC);
2708
cmmCI.Statements.
Add
(new CodeMethodReturnStatement(cmieCI));
2737
cmmGPV.Statements.
Add
(new CodeMethodReturnStatement(cmieGPV));
2766
cmmSPV.Statements.
Add
(new CodeExpressionStatement(cmieSPV));
2819
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cceCD));
2844
cmmAEH.Statements.
Add
(new CodeExpressionStatement(cmieAEH));
3050
cmmMain.Statements.
Add
(cvds);
3070
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csPropSet);
3083
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csEvent);
3138
cmmMain.Statements.
Add
(new CodeExpressionStatement(cmieIT));
3150
cmmMain.Statements.
Add
(csRun);
3207
cmmMain.Statements.
Add
(cvdsAppSplash);
System (3)
compmod\system\codedom\CodeStatementCollection.cs (3)
77
return
Add
(new CodeExpressionStatement(value));
89
this.
Add
(value[i]);
104
this.
Add
(value[i]);
System.Activities (51)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (51)
508
accessorProperty.GetStatements.
Add
(getterStatement);
530
accessorPropertyForReadOnly.GetStatements.
Add
(getterStatement);
560
accessorProperty.GetStatements.
Add
(exception);
561
accessorProperty.SetStatements.
Add
(exception);
574
accessorPropertyForReadOnly.GetStatements.
Add
(exception);
722
languageProperty.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.settings.Language)));
775
constructor.Statements.
Add
(nullArgumentCondition);
777
constructor.Statements.
Add
(
832
getLocationsMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
841
getLocationsMethod.Statements.
Add
(returnLocationsVar);
856
getLocationsMethod.Statements.
Add
(idCondition);
859
getLocationsMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("returnLocations")));
911
getExpressionTreeForExpressionMethod.Statements.
Add
(idCondition);
914
getExpressionTreeForExpressionMethod.Statements.
Add
(new CodeMethodReturnStatement(
946
invokeExpressionMethod.Statements.
Add
(GenerateInitializeDataContextActivity());
957
invokeExpressionMethod.Statements.
Add
(GenerateDataContextActivitiesCheck(this.expressionDescriptors[0]));
998
invokeExpressionMethod.Statements.
Add
(idCondition);
1001
invokeExpressionMethod.Statements.
Add
(new CodeMethodReturnStatement(
1125
statements.
Add
(cachedCompiledDataContextArray);
1126
statements.
Add
(conditionStatement);
1149
compiledDataContextStatements.
Add
(dataContextVariable);
1202
compiledDataContextStatements.
Add
(returnStatement);
1221
compiledDataContextStatements.
Add
(dataContextVariable);
1229
compiledDataContextStatements.
Add
(returnStatement);
1248
compiledDataContextStatements.
Add
(dataContextVariable);
1257
compiledDataContextStatements.
Add
(returnStatement);
1335
matchCondition.TrueStatements.
Add
(assignId);
1336
matchCondition.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
1338
isValidMethod.Statements.
Add
(matchCondition);
1341
isValidMethod.Statements.
Add
(
1346
isValidMethod.Statements.
Add
(
1484
expressionMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1508
expressionMethod.Statements.
Add
(statement);
1515
expressionMethod.Statements.
Add
(new CodeMethodReturnStatement(invokeExpression));
1519
expressionMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1544
expressionMethod.Statements.
Add
(statement);
1561
wrapperMethod.Statements.
Add
(new CodeMethodReturnStatement(
1591
expressionMethod.Statements.
Add
(statement);
1638
expressionMethod.Statements.
Add
(statement);
1695
fetchMethod.Statements.
Add
(
1836
dataContextActivitiesHelper.Statements.
Add
(
1863
setLocationsOffsetMethod.Statements.
Add
(assignLocationsOffsetStatement);
1894
cacheHelper.Statements.
Add
(
2007
constructor.Statements.
Add
(offsetCheckStatement);
2236
validateMethod.Statements.
Add
(checkLocationCountStatement);
2249
validateMethod.Statements.
Add
(generateNewOffset);
2256
validateMethod.Statements.
Add
(setexpectedLocationsCountStatement);
2260
validateMethod.Statements.
Add
(GenerateLocationReferenceCheck(kvp.Value));
2265
validateMethod.Statements.
Add
(GenerateLocationReferenceCheck(kvp.Value));
2281
validateMethod.Statements.
Add
(
2286
validateMethod.Statements.
Add
(
System.Data (104)
fx\src\data\System\Data\CodeGen\datacache.cs (104)
301
onRowEvent.Statements.
Add
(If(IdNotEQ(Event(rowClassName + eventName), Primitive(null)),
369
constructor.Statements.
Add
(
374
constructor.Statements.
Add
(
379
constructor.Statements.
Add
(
384
constructor.Statements.
Add
(Assign(Property(This(), "Prefix"), Property(Argument("table"),"Prefix")));
385
constructor.Statements.
Add
(Assign(Property(This(), "MinimumCapacity"), Property(Argument("table"),"MinimumCapacity")));
386
constructor.Statements.
Add
(Assign(Property(This(), "DisplayExpression"), Property(Argument("table"),"DisplayExpression")));
395
countProp.GetStatements.
Add
(Return(Property(Property(This(), "Rows"), "Count")));
405
colProp.GetStatements.
Add
(Return(Field(This(), TableColumnFieldName(column))));
415
thisIndex.GetStatements.
Add
(Return(Cast(stRowConcreateClassName, Indexer(Property(This(), "Rows"), Argument("index")))));
457
addByColName.Statements.
Add
(VariableDecl(stRowConcreateClassName, "row" + stRowClassName, Cast(stRowConcreateClassName, MethodCall(This(), "NewRow"))));
486
addByColName.Statements.
Add
(assignStmt);
489
addByColName.Statements.
Add
(Return(varRow));
528
findBy.Statements.
Add
(Return(Cast(stRowClassName, MethodCall(Property(This(), "Rows"), "Find", arrayCreate))));
538
getEnumerator.Statements.
Add
(Return(MethodCall(Property(This(), "Rows"), "GetEnumerator")));
548
clone.Statements.
Add
(VariableDecl(stTblClassName, "cln", Cast(stTblClassName, MethodCall(Base(), "Clone", new CodeExpression[] {}))));
550
clone.Statements.
Add
(Return(Variable("cln")));
558
createInstance.Statements.
Add
(Return(New(stTblClassName, new CodeExpression[] {})));
575
tableInitClass.Statements.
Add
(Assign(codeField,
624
tableInitVars.Statements.
Add
(Assign(codeField, Indexer(Property(This(),"Columns"),Str(column.ColumnName))));
628
tableInitClass.Statements.
Add
(Assign(Property(codeField, "AutoIncrement"), Primitive(true)));
632
tableInitClass.Statements.
Add
(Assign(Property(codeField, "AutoIncrementSeed"), Primitive(column.AutoIncrementSeed)));
636
tableInitClass.Statements.
Add
(Assign(Property(codeField, "AutoIncrementStep"), Primitive(column.AutoIncrementStep)));
640
tableInitClass.Statements.
Add
(Assign(Property(codeField, "AllowDBNull"), Primitive(false)));
644
tableInitClass.Statements.
Add
(Assign(Property(codeField, "ReadOnly"), Primitive(true)));
648
tableInitClass.Statements.
Add
(Assign(Property(codeField, "Unique"), Primitive(true)));
653
tableInitClass.Statements.
Add
(Assign(Property(codeField, "Prefix"), Str(column.Prefix)));
657
tableInitClass.Statements.
Add
(Assign(Property(codeField, "Namespace"), Str(column.Namespace)));
661
tableInitClass.Statements.
Add
(Assign(Property(codeField, "Caption"), Str(column.Caption)));
665
tableInitClass.Statements.
Add
(Assign(Property(codeField, "DefaultValue"), Primitive(column.DefaultValue)));
669
tableInitClass.Statements.
Add
(Assign(Property(codeField, "MaxLength"), Primitive(column.MaxLength)));
675
tableInitClass.Statements.
Add
(Assign(Property(This(), "CaseSensitive"), Primitive(table.CaseSensitive)));
679
tableInitClass.Statements.
Add
(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(table.Locale.ToString())})));
683
tableInitClass.Statements.
Add
(Assign(Property(This(), "Prefix"), Str(table.Prefix)));
687
tableInitClass.Statements.
Add
(Assign(Property(This(), "Namespace"), Str(table.Namespace)));
692
tableInitClass.Statements.
Add
(Assign(Property(This(), "MinimumCapacity"), Primitive(table.MinimumCapacity)));
696
tableInitClass.Statements.
Add
(Assign(Property(This(), "DisplayExpression"), Str(table.DisplayExpressionInternal)));
707
newTableRow.Statements.
Add
(Return(Cast(stRowConcreateClassName, MethodCall(This(), "NewRow"))));
716
newRowFromBuilder.Statements.
Add
(Return(New(stRowConcreateClassName, new CodeExpression[] {Argument("builder")})));
724
getRowType.Statements.
Add
(Return(TypeOf(stRowConcreateClassName)));
770
constructor.Statements.
Add
(Assign(Field(This(), stTblFieldName), Cast(stTblClassName, Property(This(),"Table"))));
891
rowProp.GetStatements.
Add
(getStmnt);
892
rowProp.SetStatements.
Add
(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Value()));
901
isNull.Statements.
Add
(Return(MethodCall(This(), "IsNull", Property(Field(This(), stTblFieldName), tableColumnName))));
909
setNull.Statements.
Add
(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Field(TypeExpr(typeof(Convert)), "DBNull")));
925
childArray.Statements.
Add
(Return(Cast(Type(rowConcreateClassName, 1), MethodCall(This(), "GetChildRows", Indexer(Property(Property(This(), "Table"), "ChildRelations"), Str(relation.RelationName))))));
944
anotherProp.GetStatements.
Add
(Return(Cast(ParentTypedRowName, MethodCall(This(), "GetParentRow", Indexer(Property(Property(This(), "Table"), "ParentRelations"), Str(relation.RelationName))))));
976
constructor.Statements.
Add
(Assign(Field(This(), "eventRow" ), Argument("row" )));
977
constructor.Statements.
Add
(Assign(Field(This(), "eventAction"), Argument("action")));
985
rowProp.GetStatements.
Add
(Return(Field(This(), "eventRow")));
993
rowProp.GetStatements.
Add
(Return(Field(This(), "eventAction")));
1034
constructor.Statements.
Add
(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler",
1036
constructor.Statements.
Add
(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler")));
1037
constructor.Statements.
Add
(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler")));
1049
constructor.Statements.
Add
(
1060
constructor.Statements.
Add
(
1086
constructor.Statements.
Add
(
1098
constructor.Statements.
Add
(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler",
1100
constructor.Statements.
Add
(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler")));
1101
constructor.Statements.
Add
(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler")));
1111
clone.Statements.
Add
(VariableDecl(stDataSetClassName, "cln", Cast(stDataSetClassName, MethodCall(Base(), "Clone", new CodeExpression[] {}))));
1113
clone.Statements.
Add
(Return(Variable("cln")));
1131
initClassMethod.Statements.
Add
(Assign(Property(This(), "DataSetName"), Str(dataSet.DataSetName)));
1133
initClassMethod.Statements.
Add
(Assign(Property(This(), "Prefix"), Str(dataSet.Prefix)));
1135
initClassMethod.Statements.
Add
(Assign(Property(This(), "Namespace"), Str(dataSet.Namespace)));
1137
initClassMethod.Statements.
Add
(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(dataSet.Locale.ToString())})));
1139
initClassMethod.Statements.
Add
(Assign(Property(This(), "CaseSensitive"), Primitive(dataSet.CaseSensitive)));
1141
initClassMethod.Statements.
Add
(Assign(Property(This(), "EnforceConstraints"), Primitive(dataSet.EnforceConstraints)));
1146
initClassMethod.Statements.
Add
(Assign(fieldTable, New(TableClassName(dataSet.Tables[i]), new CodeExpression[] {})));
1153
initVarsMethod.Statements.
Add
(Assign(fieldTable, Cast(TableClassName(dataSet.Tables[i]), Indexer(Property(This(),"Tables"),Str(dataSet.Tables[i].TableName)))));
1155
initVarsMethod.Statements.
Add
(
1170
shouldSerializeTables.Statements.
Add
(Return(Primitive(false)));
1178
shouldSerializeRelations.Statements.
Add
(Return(Primitive(false)));
1206
getTypedDataSetSchema.Statements.
Add
(VariableDecl(stDataSetClassName,"ds",New(stDataSetClassName,new CodeExpression[] {})));
1208
getTypedDataSetSchema.Statements.
Add
(VariableDecl(typeof(XmlSchemaComplexType),"type",New(typeof(XmlSchemaComplexType),new CodeExpression[] {})));
1209
getTypedDataSetSchema.Statements.
Add
(VariableDecl(typeof(XmlSchemaSequence),"sequence",New(typeof(XmlSchemaSequence),new CodeExpression[] {})));
1210
getTypedDataSetSchema.Statements.
Add
(VariableDecl(typeof(XmlSchemaAny),"any",New(typeof(XmlSchemaAny),new CodeExpression[] {})));
1211
getTypedDataSetSchema.Statements.
Add
(Assign(Property(Variable("any"),"Namespace"),Property(Variable("ds"),"Namespace")));
1213
getTypedDataSetSchema.Statements.
Add
(Assign(Property(Variable("type"),"Particle"),Variable("sequence")));
1214
getTypedDataSetSchema.Statements.
Add
(Return(Variable("type")));
1224
readXmlSerializable.Statements.
Add
(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new CodeExpression[] {})));
1229
readXmlSerializable.Statements.
Add
(
1235
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "DataSetName"), Property(Variable("ds"),"DataSetName")));
1236
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "Prefix"), Property(Variable("ds"),"Prefix")));
1237
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "Namespace"), Property(Variable("ds"),"Namespace")));
1238
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "Locale"), Property(Variable("ds"),"Locale")));
1239
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "CaseSensitive"), Property(Variable("ds"),"CaseSensitive")));
1240
readXmlSerializable.Statements.
Add
(Assign(Property(This(), "EnforceConstraints"), Property(Variable("ds"),"EnforceConstraints")));
1254
getSchemaSerializable.Statements.
Add
(VariableDecl(typeof(System.IO.MemoryStream), "stream", New(typeof(System.IO.MemoryStream),new CodeExpression[] {})));
1256
getSchemaSerializable.Statements.
Add
(Assign(Property(Argument("stream"),"Position"),Primitive(0)));
1257
getSchemaSerializable.Statements.
Add
(Return(MethodCall(TypeExpr("System.Xml.Schema.XmlSchema"),"Read",new CodeExpression[] {New(typeof(System.Xml.XmlTextReader),new CodeExpression[] {Argument("stream")}), Primitive(null)})));
1292
initClassMethod.Statements.
Add
(VariableDecl(typeof(ForeignKeyConstraint),"fkc"));
1296
initClassMethod.Statements.
Add
(Assign(
1309
initClassMethod.Statements.
Add
(Assign(Property(varFkc,"AcceptRejectRule"),Field(TypeExpr(fkc.AcceptRejectRule.GetType()), acceptRejectRule)));
1310
initClassMethod.Statements.
Add
(Assign(Property(varFkc,"DeleteRule"),Field(TypeExpr(fkc.DeleteRule.GetType()), deleteRule)));
1311
initClassMethod.Statements.
Add
(Assign(Property(varFkc,"UpdateRule"),Field(TypeExpr(fkc.UpdateRule.GetType()), updateRule)));
1337
initClassMethod.Statements.
Add
(Assign(
1344
initClassMethod.Statements.
Add
(Assign(Property(Field(This(), RelationFieldName(relation)), "Nested"), Primitive(true)));
1350
initVarsMethod.Statements.
Add
(Assign(Field(This(), RelationFieldName(relation)), Indexer(Property(This(),"Relations"),Str(relation.RelationName))));
1366
prop.GetStatements.
Add
(Return(Field(This(), TableFieldName(dataSet.Tables[i]))));
1371
shouldSerializeTableProperty.Statements.
Add
(Return(Primitive(false)));
1379
schemaChanged.Statements.
Add
(
1398
initExpressionMethod.Statements.
Add
(Assign(Property(codeField, "Expression"), Str(column.Expression)));
1563
ccc.Statements.
Add
(catchStmnt);
System.Data.Entity.Design (33)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (10)
416
viewStoringTypeConstructor.Statements.
Add
(EdmEntityContainerNameStatement);
417
viewStoringTypeConstructor.Statements.
Add
(StoreEntityContainerNameStatement);
418
viewStoringTypeConstructor.Statements.
Add
(HashOverMappingClosureStatement);
419
viewStoringTypeConstructor.Statements.
Add
(HashOverAllExtentViewsStatement);
420
viewStoringTypeConstructor.Statements.
Add
(ViewCountStatement);
517
getViewAtMethod.Statements.
Add
(currentIf);
526
currentIf.TrueStatements.
Add
(returnViewMethodCall);
532
getViewAtMethod.Statements.
Add
(new CodeThrowExceptionStatement(
574
viewMethod.Statements.
Add
(new CodeMethodReturnStatement(newExpression));
586
statements.
Add
(viewStringDeclaration);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
386
codeProperty.GetStatements.
Add
(
403
codeProperty.GetStatements.
Add
(
554
method.Statements.
Add
(
587
method.Statements.
Add
(
619
method.Statements.
Add
(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
195
property.SetStatements.
Add
(
213
property.SetStatements.
Add
(
242
property.SetStatements.
Add
(
270
property.GetStatements.
Add
(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (11)
240
statements.
Add
(
251
statements.
Add
(
257
statements.
Add
(new CodeMethodReturnStatement(FieldRef));
265
statements.
Add
(
275
statements.
Add
(new CodeMethodReturnStatement(FieldRef));
360
statements.
Add
(
485
statements.
Add
(
496
statements.
Add
(
523
statements.
Add
(
534
statements.
Add
(
542
statements.
Add
(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
191
method.Statements.
Add
(createNewInstance);
232
method.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue));
236
method.Statements.
Add
(new CodeMethodReturnStatement(instanceRef));
System.Data.Services.Design (26)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
790
propertyChangedMethod.Statements.
Add
(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (10)
197
connectionWorkspaceCtor.Statements.
Add
(
211
connectionWorkspaceCtor.Statements.
Add
(
276
resolveTypeFromName.Statements.
Add
(
311
resolveTypeFromName.Statements.
Add
(
335
resolveNameFromType.Statements.
Add
(
370
resolveNameFromType.Statements.
Add
(
386
resolveNameFromType.Statements.
Add
(new CodeMethodReturnStatement(clientTypeFullName));
391
resolveNameFromType.Statements.
Add
(
547
codeProperty.GetStatements.
Add
(
564
codeProperty.GetStatements.
Add
(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (5)
176
property.SetStatements.
Add
(
227
property.SetStatements.
Add
(ccs);
232
csc.
Add
(new CodeAssignStatement(getMethod, valueRef));
240
csc.
Add
(s);
271
property.GetStatements.
Add
(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (6)
245
statements.
Add
(
274
statements.
Add
(new CodeMethodReturnStatement(FieldRef));
282
statements.
Add
(
307
statements.
Add
(new CodeMethodReturnStatement(FieldRef));
359
statements.
Add
(
369
statements.
Add
(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (4)
182
method.Statements.
Add
(createNewInstance);
209
method.Statements.
Add
(
233
method.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue));
237
method.Statements.
Add
(new CodeMethodReturnStatement(instanceRef));
System.Management (347)
WmiGenerator.cs (347)
994
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodeSnippetExpression(propValue.ToString())));
998
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodePrimitiveExpression(propValue)));
1039
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(Value));
1041
cmp.SetStatements.
Add
(new CodeAssignStatement(Value,
1077
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(cpre));
1078
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1079
cmp.GetStatements.
Add
(cis);
1107
cis1.TrueStatements.
Add
(new CodeThrowExceptionStatement(coce));
1108
cis.TrueStatements.
Add
(cis1);
1111
cis.TrueStatements.
Add
(new CodeAssignStatement(cpre,
1114
cmp.SetStatements.
Add
(cis);
1139
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()),new CodeVariableReferenceExpression("ManagedObject")));
1192
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie)));
1343
cis.TrueStatements.
Add
(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) ));
1344
cis.FalseStatements.
Add
(new CodeMethodReturnStatement (new CodePrimitiveExpression(false) ));
1345
cmp2.GetStatements.
Add
(cis);
1369
cis.TrueStatements.
Add
(new CodeMethodReturnStatement (new CodePrimitiveExpression(null)));
1382
cis.TrueStatements.
Add
(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1399
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(
1406
cis.TrueStatements.
Add
(new CodeMethodReturnStatement (cmie));
1409
cmp.GetStatements.
Add
(cis);
1434
cis2.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
1436
cmm.Statements.
Add
(cis2);
1437
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1477
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1482
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie)));
1496
cmm2.Statements.
Add
(new CodeAssignStatement(cie,new CodePrimitiveExpression(null)));
1555
ccs.TrueStatements.
Add
(new CodeAssignStatement(cie,new CodePrimitiveExpression(null)));
1556
ccs.FalseStatements.
Add
(new CodeAssignStatement(cie,new CodeSnippetExpression("value")));
1557
cmp.SetStatements.
Add
(ccs);
1562
cmp.SetStatements.
Add
(new CodeAssignStatement(cie,new CodeSnippetExpression("value")));
1594
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
1596
cmp.SetStatements.
Add
(cis);
1599
cmm2.Statements.
Add
(cis);
2102
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath)));
2108
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.String",strPathObject,new CodePrimitiveExpression(strPath)));
2137
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strPathObject),cmietoAdd));
2139
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject)));
2180
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2217
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null)));
2237
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2276
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null)));
2297
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2329
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2359
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2387
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2421
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2457
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2498
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2546
cctor.Statements.
Add
(new CodeExpressionStatement(cmieInit));
2595
cis.TrueStatements.
Add
(new CodeAssignStatement(
2602
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2603
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2609
cis.FalseStatements.
Add
(new CodeThrowExceptionStatement(coce));
2612
cctor.Statements.
Add
(cis);
2663
cis.TrueStatements.
Add
(new CodeAssignStatement(
2670
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2671
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2674
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
2680
cis.FalseStatements.
Add
(new CodeThrowExceptionStatement(coce));
2683
cctor.Statements.
Add
(cis);
2754
cis1.TrueStatements.
Add
(new CodeThrowExceptionStatement(coce));
2756
cis.TrueStatements.
Add
(cis1);
2757
cmmInit.Statements.
Add
(cis);
2764
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(
2770
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(
2774
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2789
cctor.Statements.
Add
(new CodeAssignStatement(cpre, new CodePrimitiveExpression(true)));
2889
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.Boolean","IsMethodStatic",new CodePrimitiveExpression(bStatic)));
2905
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),
2915
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
2926
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1));
2941
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement("System.Boolean",
2944
cis.TrueStatements.
Add
(new CodeAssignStatement(cprePriveleges, new CodePrimitiveExpression(true)));
2965
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie));
3029
cis.TrueStatements.
Add
(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "),
3034
cis.TrueStatements.
Add
(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name))));
3067
cis.TrueStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3144
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3155
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2));
3174
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),coce));
3178
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3191
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2));
3195
cis.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3218
cis.TrueStatements.
Add
(cmis);
3227
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()),
3236
cis.TrueStatements.
Add
(new CodeAssignStatement(cprePriveleges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString())));
3248
cmm.Statements.
Add
(cRetVal);
3249
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new CodePrimitiveExpression(null)));
3254
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3255
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3260
cmm.Statements.
Add
(cRetVal);
3261
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),
3266
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3267
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3272
cmm.Statements.
Add
(cRetVal);
3281
cmm.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce));
3285
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3286
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3297
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(cmie));
3304
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(cmie));
3309
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(
3312
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
3316
cmm.Statements.
Add
(cis);
3345
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3377
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3408
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3441
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3502
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3504
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3510
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),
3513
cis.TrueStatements.
Add
(cis1);
3514
cmm.Statements.
Add
(cis);
3520
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3522
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3526
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3537
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),
3549
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()),
3551
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3556
cmm.Statements.
Add
(cis);
3566
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
3599
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3631
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3683
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3685
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3690
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),
3694
cis.TrueStatements.
Add
(cis1);
3695
cmm.Statements.
Add
(cis);
3707
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(),
3713
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(
3717
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3724
cmm.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
3733
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
3840
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(baseTypeMemberVariable),cmie));
3843
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(typeMemberVariable),new CodeVariableReferenceExpression(baseTypeParam)));
3866
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3890
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3916
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3940
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3961
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
3986
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4005
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4024
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4043
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4062
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4152
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value"))));
4180
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" "))));
4182
cis.TrueStatements.
Add
(returnStatement);
4185
cmm.Statements.
Add
(cis);
4245
cis.TrueStatements.
Add
(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression(""))));
4247
cis.TrueStatements.
Add
(returnStatement);
4250
cmm.Statements.
Add
(cis);
4278
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression("")));
4280
cmm.Statements.
Add
(cis);
4283
cmm.Statements.
Add
(returnStatement);
4328
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection),
4345
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4363
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(
4380
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeThisReferenceExpression()));
4418
cmm.Statements.
Add
(new CodeExpressionStatement(cmie));
4420
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("System.Int32",strnCtr));
4454
cfls.Statements.
Add
(new CodeExpressionStatement(cmie));
4456
cmm.Statements.
Add
(cfls);
4473
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
4545
cctor.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator),
4568
cmp.GetStatements.
Add
(new CodeMethodReturnStatement(coce));
4600
cmm.Statements.
Add
(new CodeMethodReturnStatement(cmie));
4617
cmm.Statements.
Add
(new CodeExpressionStatement (cmie));
5072
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
5073
cmm.Statements.
Add
(cis);
5107
cis.TrueStatements.
Add
(new CodeExpressionStatement(cmie));
5108
cmm.Statements.
Add
(cis);
5439
cmp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.String",strRetVar,
5459
cis.TrueStatements.
Add
(cis1);
5461
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5485
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5488
cis1.TrueStatements.
Add
(cis2);
5490
cmp.GetStatements.
Add
(cis);
5492
cmp.GetStatements.
Add
(new CodeMethodReturnStatement (new CodeVariableReferenceExpression(strRetVar)));
5548
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5559
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre,coce)));
5560
cmm.Statements.
Add
(cis);
5621
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5628
cis.FalseStatements.
Add
(new CodeVariableDeclarationStatement("System.Array",strDerivation,cs));
5639
cis1.TrueStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0)));
5676
cis2.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5678
cis1.TrueStatements.
Add
(cfls);
5679
cfls.Statements.
Add
(cis2);
5681
cis.FalseStatements.
Add
(cis1);
5683
cmm.Statements.
Add
(cis);
5684
cmm.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
5719
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie)));
5720
statColl.
Add
(cis1);
5721
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5726
statColl.
Add
(new CodeAssignStatement(varToAssign,new CodePrimitiveExpression(null)));
5727
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign ,CreateObjectForProperty(strType,cmie)));
5728
statColl.
Add
(cis1);
5734
statColl.
Add
(cis1);
5747
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType,ce)));
5748
cis1.FalseStatements.
Add
(new CodeMethodReturnStatement(CreateObjectForProperty(strType,null)));
5752
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,ce)));
5753
cis1.FalseStatements.
Add
(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,null)));
5793
cis1.TrueStatements.
Add
(
5805
cis1.TrueStatements.
Add
(
5856
cfls.Statements.
Add
( new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5859
cis1.TrueStatements.
Add
(cfls);
5862
cis1.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray)));
5863
statColl.
Add
(cis1);
5864
statColl.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
5869
statColl.
Add
(new CodeAssignStatement(varToAssign,new CodePrimitiveExpression(null)));
5870
cis1.TrueStatements.
Add
(new CodeAssignStatement(varToAssign ,new CodeVariableReferenceExpression(strArray)));
5871
statColl.
Add
(cis1);
5890
statColl.
Add
(new CodeAssignStatement(prop,
5915
cis1.TrueStatements.
Add
(
5926
cis1.TrueStatements.
Add
(
5968
cfls.Statements.
Add
( new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray),
5971
cis1.TrueStatements.
Add
(cfls);
5973
cis1.TrueStatements.
Add
(new CodeAssignStatement(prop,new CodeVariableReferenceExpression(strArray)));
5974
cis1.FalseStatements.
Add
(new CodeAssignStatement(prop,new CodePrimitiveExpression(null)));
5975
statColl.
Add
(cis1);
6104
cis.TrueStatements.
Add
(new CodeMethodReturnStatement(Value));
6105
cis.FalseStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
6107
cmp.GetStatements.
Add
(cis);
6116
cis.TrueStatements.
Add
(new CodeAssignStatement(Value,
6119
cmp.SetStatements.
Add
(cis);
6133
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Array",strArray,
6136
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(strEnumName,1),ArrToRet,
6143
cmProp.GetStatements.
Add
(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0)));
6166
cfls.Statements.
Add
(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(ArrToRet),
6171
cmProp.GetStatements.
Add
(cfls);
6173
cmProp.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(ArrToRet)));
6312
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6325
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),coce));
6327
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(
6333
cis1.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),
6337
cmm.Statements.
Add
(cis1);
6342
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
6350
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(),strTemp,coce1));
6361
cmm.Statements.
Add
(new CodeMethodReturnStatement(coce));
6447
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),"initializer",new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
6450
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),year,new CodePropertyReferenceExpression(cvreInitializer,"Year")));
6453
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),month, new CodePropertyReferenceExpression(cvreInitializer,"Month")));
6456
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),day,new CodePropertyReferenceExpression(cvreInitializer,"Day")));
6459
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hour,new CodePropertyReferenceExpression(cvreInitializer,"Hour")));
6462
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minute,new CodePropertyReferenceExpression(cvreInitializer,"Minute")));
6465
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),second,new CodePropertyReferenceExpression(cvreInitializer,"Second")));
6468
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0)));
6471
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtf,new CodeVariableReferenceExpression(dmtfParam)));
6475
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),datetimeVariable,cpreMinVal));
6478
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),tempStr,new CodeFieldReferenceExpression(
6498
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6500
cmmdt.Statements.
Add
(cis);
6517
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6519
cmmdt.Statements.
Add
(cis);
6534
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6536
cmmdt.Statements.
Add
(cis);
6559
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6585
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks),cboe2));
6587
tryblock.TryStatements.
Add
(cis);
6670
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6672
tryblock.TryStatements.
Add
(cis);
6694
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
6702
cmmdt.Statements.
Add
(tryblock);
6718
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),coce));
6728
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie2));
6740
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tickoffset,cmie1));
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)));
6759
cmmdt.Statements.
Add
(
6772
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6807
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6815
tryblock2.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(utcOffset), cmie));
6823
cis.TrueStatements.
Add
(tryblock2);
6829
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new CodeTypeReference("System.Int32"),cboe)));
6835
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie));
6837
cmmdt.Statements.
Add
(cis);
6842
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable)));
6862
cmmdt.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(tempVarName), cmie));
6876
cis.TrueStatements.
Add
( new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign),cmie));
6878
cmmdt.
Add
(cis);
6919
cmmts.Statements.
Add
(
6939
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"maxTimeSpan",cpreMaxVal));
6957
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6959
cmmts.Statements.
Add
(cis);
6969
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"minTimeSpan",cpreMinVal));
6987
cis2.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
6989
cmmts.Statements.
Add
(cis2);
7006
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7023
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7040
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7047
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7059
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,coce));
7082
cmmts.Statements.
Add
(
7095
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie));
7117
cis.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie));
7118
cmmts.Statements.
Add
(cis);
7132
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7136
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7138
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan)));
7161
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strUtc,
7181
cmmdt.Statements.
Add
(
7195
cmmdt.Statements.
Add
(
7227
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam),cmie1));
7228
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),new CodePrimitiveExpression("+000")));
7257
cis2.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7269
cis2.FalseStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),"strTemp",cmie1));
7284
cis2.FalseStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7286
cis1.FalseStatements.
Add
(cis2);
7287
cmmdt.Statements.
Add
(cis1);
7305
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtfDateTime,cmie2));
7339
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7355
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),dtTemp,coce));
7377
cmmdt.Statements.
Add
(
7391
cmmdt.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie1));
7413
cis1.TrueStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie1));
7414
cmmdt.Statements.
Add
(cis1);
7426
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),cmie2));
7433
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7437
cmmdt.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime)));
7464
cmmdt.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
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)));
7514
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7516
cmmts.Statements.
Add
(cis);
7533
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7535
cmmts.Statements.
Add
(cis);
7551
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7553
cmmts.Statements.
Add
(cis);
7574
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7576
cmmts.Statements.
Add
(cis);
7585
tryblock.TryStatements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strTemp,
7615
tryblock.TryStatements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp),cmie));
7624
tryblock.TryStatements.
Add
7702
cis.TrueStatements.
Add
(new CodeThrowExceptionStatement(codeThrowException));
7725
catchblock.Statements.
Add
(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs));
7733
cmmts.Statements.
Add
(tryblock);
7748
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),timespan,coce));
7759
cmmts.Statements.
Add
(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,cmie));
7765
cmmts.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(timespan),cmie));
7771
cmmts.Statements.
Add
(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan)));
7787
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp),cmie));
7793
statCol.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(strVarToAssign),cmie));
7813
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()),
7815
cmmInit.Statements.
Add
(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
System.Runtime.Serialization (19)
System\Runtime\Serialization\CodeExporter.cs (19)
1679
readXmlMethod.Statements.
Add
(setNode);
1714
getSchemaMethod.Statements.
Add
(new CodeMethodReturnStatement(NullReference));
1737
getSchemaStaticMethod.Statements.
Add
(
1757
baseConstructor.Statements.
Add
(setObjectData);
1761
baseConstructor.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference));
1818
returnIfNull.TrueStatements.
Add
(new CodeMethodReturnStatement());
1855
loop.Statements.
Add
(getCurrent);
1856
loop.Statements.
Add
(addValue);
1858
getObjectDataMethod.Statements.
Add
(returnIfNull);
1859
getObjectDataMethod.Statements.
Add
(getEnumerator);
1860
getObjectDataMethod.Statements.
Add
(loop);
1890
extensionDataObjectProperty.GetStatements.
Add
(propertyGet);
1895
extensionDataObjectProperty.SetStatements.
Add
(propertySet);
1911
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
1913
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
1950
property.GetStatements.
Add
(propertyGet);
1971
ifStatement.TrueStatements.
Add
(propertySet);
1973
property.SetStatements.
Add
(ifStatement);
1976
property.SetStatements.
Add
(propertySet);
System.ServiceModel (22)
System\ServiceModel\Description\ClientClassGenerator.cs (21)
276
helperMethod.Statements.
Add
(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type)));
296
helperMethod.Statements.
Add
(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod));
299
helperMethod.Statements.
Add
(returnStatement);
303
helperMethod.Statements.
Add
(new CodeMethodReturnStatement(invokeMethod));
325
helperMethod.Statements.
Add
(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type)));
344
helperMethod.Statements.
Add
(new CodeAssignStatement(new CodeArgumentReferenceExpression(param.Name), fieldRef));
346
helperMethod.Statements.
Add
(new CodeAssignStatement(fieldRef, new CodeArgumentReferenceExpression(param.Name)));
466
method.Statements.
Add
(new CodeMethodReturnStatement(methodInvoke));
541
ctor.Statements.
Add
(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(EventArgsCtorParamNames[0])));
610
property.GetStatements.
Add
(returnStmt);
677
onBeginOperationMethod.Statements.
Add
(variableDecl);
689
onBeginOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(invokeBegin));
732
onEndOperationMethod.Statements.
Add
(variableDecl);
749
onEndOperationMethod.Statements.
Add
(retValDecl);
758
onEndOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(retArray));
762
onEndOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
832
operationCompletedMethod.Statements.
Add
(ifEventHandlerNotNullBlock);
865
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(beginOperationDelegate, beginOperationMethod));
866
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(endOperationDelegate, endOperationMethod));
867
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(operationCompletedDelegate, operationCompletedMethod));
883
eventAsyncMethod.Statements.
Add
(new CodeExpressionStatement(invokeAsync));
System\ServiceModel\Description\OperationGenerator.cs (1)
836
otherCtor.Statements.
Add
(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
176
codeMemberMethod.Statements.
Add
(new CodeMethodReturnStatement(expr));
System.Web (161)
Compilation\BaseCodeDomTreeGenerator.cs (10)
457
initializedCondition.TrueStatements.
Add
(new CodeAssignStatement(
464
InitMethod.Statements.
Add
(initializedCondition);
532
prop.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(
554
prop.GetStatements.
Add
(new CodeMethodReturnStatement(fieldRef));
555
prop.SetStatements.
Add
(new CodeAssignStatement(
618
ifStmt.TrueStatements.
Add
(new CodeAssignStatement(fieldAccess, propertyInitExpression));
620
prop.GetStatements.
Add
(ifStmt);
621
prop.GetStatements.
Add
(new CodeMethodReturnStatement(fieldAccess));
662
prop.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(declaredType, getObject)));
788
method.Statements.
Add
(simpleAssignment);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (60)
94
methodStatements.
Add
(outputWriteStmt);
119
methodStatements.
Add
(call);
133
statements.
Add
(parserDeclaration);
144
statements.
Add
(methCallStatement);
257
statements.
Add
(new CodeVariableDeclarationStatement(builder.ControlType.FullName, "__ctrl", cast));
288
statements.
Add
(new CodeVariableDeclarationStatement(ctrlTypeRef, "__ctrl"));
294
statements.
Add
(setCtl);
302
statements.
Add
(underscoreCtlSet);
309
statements.
Add
(BuildTemplatePropertyStatement(ctrlRefExpr));
318
statements.
Add
(set);
388
currentStmts.
Add
(set);
400
statements.
Add
(methCallStatement);
417
currentStmts.
Add
(statement);
427
statements.
Add
(methCallStatement);
504
contentTemplateIfStmt.TrueStatements.
Add
(setStatement);
506
statements.
Add
(contentTemplateIfStmt);
531
templateIfStmt.TrueStatements.
Add
(new CodeExpressionStatement(instantiateTemplateExpr));
533
statements.
Add
(templateIfStmt);
573
currentStmts.
Add
(ceStatement);
602
statements.
Add
(new CodeExpressionStatement(methCallExpression));
637
buildSubControlBlock.
Add
(new CodeVariableDeclarationStatement(ctrlTypeReference, localVariableRef));
642
buildSubControlBlock.
Add
(setCtl);
694
buildSubControlBlock.
Add
(new CodeExpressionStatement(call));
764
currentStmts.
Add
(setStatment);
797
currentStmts.
Add
(methCallStatement);
805
currentStmts.
Add
(new CodeVariableDeclarationStatement(ctrlTypeReference, localVariableRef));
817
currentStmts.
Add
(setCtl);
824
currentStmts.
Add
(methCallStatement);
833
currentStmts.
Add
(set);
884
statements.
Add
(attachEvent);
897
statements.
Add
(attachEvent);
925
templateIfStmt.TrueStatements.
Add
(methCallStatement);
926
statements.
Add
(templateIfStmt);
929
statements.
Add
(methCallStatement);
953
statements.
Add
(detachEvent);
958
statements.
Add
(attachEvent);
964
statements.
Add
(new CodeMethodReturnStatement(ctrlRefExpr));
999
topLevelStatements.
Add
(tableDecl);
1006
statements.
Add
(newTableAssign);
1012
statements.
Add
(returnStatement);
1058
topLevelStatements.
Add
(controlDecl);
1071
topLevelStatements.
Add
(findControlAssign);
1099
ifStatement.TrueStatements.
Add
(tableIndexAssign);
1101
currentStatements.
Add
(ifStatement);
1250
topMethodStatements.
Add
(containerDecl);
1251
topMethodStatements.
Add
(targetDecl);
1258
otherMethodStatements.
Add
(setTarget);
1266
otherMethodStatements.
Add
(setContainer);
1324
otherMethodStatements.
Add
(setDataBoundStringCall);
1328
method.Statements.
Add
(stmt);
1331
method.Statements.
Add
(stmt);
1422
method.Statements.
Add
(stmt);
1427
method.Statements.
Add
(stmt);
1519
method.Statements.
Add
(lit);
1531
method.Statements.
Add
(lit);
1542
method.Statements.
Add
(statement);
1562
method.Statements.
Add
(methodCall);
1573
topMethodStatements.
Add
(new CodeVariableDeclarationStatement(
1582
otherMethodStatements.
Add
(simpleAssignment);
1762
currentStmts.
Add
(ifStmt);
Compilation\BrowserCapabilitiesCompiler.cs (2)
380
cmm.Statements.
Add
(istatement);
439
cmm.Statements.
Add
(istatement);
Compilation\CodeDOMUtility.cs (3)
265
statements.
Add
(setAttributeCall);
278
statements.
Add
(assignStmt);
296
statements.
Add
(assignStmt);
Compilation\DataBindingExpressionBuilder.cs (7)
61
statements.
Add
(ifStmt);
84
methodStatements.
Add
(targetDecl);
93
statements.
Add
(setTarget);
97
methodStatements.
Add
(containerDecl);
105
statements.
Add
(setContainer);
121
declarationStatements.
Add
(itemTypeDecl);
129
codeStatements.
Add
(setDataItem);
Compilation\MasterPageCodeDomTreeGenerator.cs (1)
37
method.Statements.
Add
(stmt);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (7)
117
statements.
Add
(new CodeVariableDeclarationStatement(typeof(IServiceProvider), "__activator"));
119
statements.
Add
(new CodeAssignStatement(activatorRefExpr, webObjectActivatorExpr));
127
createObjectStatement.TrueStatements.
Add
(new CodeMethodReturnStatement(getServiceExpr));
132
createObjectStatement.FalseStatements.
Add
(new CodeMethodReturnStatement(newObjectExpr));
138
createObjectStatement.FalseStatements.
Add
(throwExceptionStatement);
140
statements.
Add
(createObjectStatement);
145
statements.
Add
(new CodeMethodReturnStatement(newObjectExpression));
Compilation\PageCodeDomTreeGenerator.cs (29)
94
trueStatements.
Add
(assignDependencies);
106
trueStatements.
Add
(addFileDep);
121
trueStatements.
Add
(initFile);
140
InitMethod.Statements.
Add
(setScriptTimeout);
145
InitMethod.Statements.
Add
(new CodeAssignStatement(
151
InitMethod.Statements.
Add
(new CodeAssignStatement(
157
InitMethod.Statements.
Add
(new CodeAssignStatement(
212
outputCacheSettingsCondition.TrueStatements.
Add
(setOutputCacheObject);
219
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
227
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
235
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
245
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
253
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
261
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
269
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
277
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
285
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
292
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
300
outputCacheSettingsCondition.TrueStatements.
Add
(setPropertyStatement);
309
outputCacheSettingsCondition.TrueStatements.
Add
(assignOutputCacheSettings);
311
InitMethod.Statements.
Add
(outputCacheSettingsCondition);
363
method.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(Parser.TypeHashCode)));
380
method.Statements.
Add
(setStatment);
409
method.Statements.
Add
(new CodeAssignStatement(
415
method.Statements.
Add
(new CodeAssignStatement(
426
method.Statements.
Add
(new CodeExpressionStatement(invokeExpr));
436
method.Statements.
Add
(statement);
472
method.Statements.
Add
(new CodeMethodReturnStatement(invokeExpr));
530
method.Statements.
Add
(new CodeMethodReturnStatement(invokeExpr));
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
47
member.GetStatements.
Add
(returnStmt);
55
statements.
Add
(BuildControlSkinAssignmentStatement(builder, skinID));
Compilation\ProfileBuildProvider.cs (3)
205
prop.GetStatements.
Add
(getLine);
255
prop.GetStatements.
Add
(getLine);
295
method.Statements.
Add
(returnSatement);
Compilation\TemplateControlCodeDomTreeGenerator.cs (9)
58
trueStatements.
Add
(readResource);
83
topLevelStatements.
Add
(setProp);
131
prop.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(propertyType, propRef)));
155
bindMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(String.Empty)));
195
method.Statements.
Add
(new CodeExpressionStatement(baseCallExpression));
207
method.Statements.
Add
(new CodeExpressionStatement(methCallExpression));
214
method.Statements.
Add
(new CodeExpressionStatement(call));
237
prop.GetStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
268
prop.GetStatements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(
Configuration\BrowserCapabilitiesCodeGenerator.cs (28)
756
istatement.TrueStatements.
Add
(new CodeMethodReturnStatement());
757
method.Statements.
Add
(istatement);
924
method.Statements.
Add
(cas);
944
method.Statements.
Add
(cas);
978
method.Statements.
Add
(cas);
1039
cmm.Statements.
Add
(cvds);
1054
statements.
Add
(codeAssignStmt);
1080
cmm.Statements.
Add
(cmrs);
1127
cmm.Statements.
Add
(new CodeVariableDeclarationStatement("RegexWorker", _regexWorkerRefName));
1130
cmm.Statements.
Add
(new CodeAssignStatement(_regexWorkerRefExpr, new CodeObjectCreateExpression("RegexWorker", _browserCapsRefExpr)));
1142
emptyCheckStmt.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1143
cmm.Statements.
Add
(emptyCheckStmt);
1151
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(IDictionary), _dictionaryRefName));
1158
cmm.Statements.
Add
(assign);
1179
cmm.Statements.
Add
(valueAssignment);
1231
cmm.Statements.
Add
(assign);
1243
istatement.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1244
cmm.Statements.
Add
(istatement);
1263
cmm.Statements.
Add
(valueAssignment);
1292
cmm.Statements.
Add
(assign);
1304
istatement.TrueStatements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1305
cmm.Statements.
Add
(istatement);
1318
cmm.Statements.
Add
(new CodeVariableDeclarationStatement(varType, varName));
1421
cmm.Statements.
Add
(assign);
1439
cmm.Statements.
Add
(assignAdapter);
1447
cmm.Statements.
Add
(assignHtmlTextWriter);
1453
cmm.Statements.
Add
(new CodeCommentStatement(comment));
1473
stmts.
Add
(conditionStmt);
System.Web.Services (22)
System\Web\Services\Description\HttpProtocolImporter.cs (5)
180
mainCodeMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke)));
183
mainCodeMethod.Statements.
Add
(new CodeExpressionStatement(invoke));
211
beginCodeMethod.Statements.
Add
(new CodeMethodReturnStatement(invoke));
222
endCodeMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke)));
225
endCodeMethod.Statements.
Add
(new CodeExpressionStatement(invoke));
System\Web\Services\Description\ProtocolImporter.cs (4)
663
ctor.Statements.
Add
(assignUrlStatement);
673
ctor.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(string), "urlSetting", value));
692
ctor.Statements.
Add
(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[] { assignUrlStatement }));
694
ctor.Statements.
Add
(new CodeConditionStatement(checkIfNull, trueStatements));
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
31
ctor.Statements.
Add
(assignVersionStatement);
System\Web\Services\Description\SoapProtocolImporter.cs (6)
873
beginCodeMethod.Statements.
Add
(new CodeMethodReturnStatement(invoke));
968
codeMethod.Statements.
Add
(new CodeExpressionStatement(invoke));
971
codeMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(object[]), resultsName, invoke));
981
codeMethod.Statements.
Add
(new CodeAssignStatement(target, value));
988
codeMethod.Statements.
Add
(new CodeAssignStatement(target, value));
997
codeMethod.Statements.
Add
(new CodeMethodReturnStatement(value));
System\Web\Services\Description\WebCodeGenerator.cs (6)
96
prop.GetStatements.
Add
(ret);
100
prop.SetStatements.
Add
(new CodeAssignStatement(left, right));
311
asyncCompleted.Statements.
Add
(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0]));
344
asyncCodeMethod.Statements.
Add
(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0]));
388
ctor.Statements.
Add
(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), data.Name), new CodeArgumentReferenceExpression(results)));
415
prop.GetStatements.
Add
(ret);
System.Workflow.Activities (3)
WebServiceReceive.cs (3)
844
webMethod.Statements.
Add
(resultsDeclaration);
854
webMethod.Statements.
Add
(assignStatement);
867
webMethod.Statements.
Add
(methodReturnStatement);
System.Workflow.ComponentModel (9)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (3)
99
method.Statements.
Add
(beginInit);
102
method.Statements.
Add
(s);
107
method.Statements.
Add
(endInit);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
152
retVal.
Add
(new CodeAttachEventStatement(eventRef, listener));
202
retVal.
Add
(new CodeAssignStatement(propertyRef, new CodeTypeOfExpression(typeName)));
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (3)
64
statements.
Add
(result as CodeStatement);
70
statements.
Add
(new CodeAssignStatement(varExpression, result as CodeExpression));
108
statements.
Add
(varDecl);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
38
statements.
Add
(new CodeVariableDeclarationStatement(obj.GetType(), variableName, new CodeObjectCreateExpression(obj.GetType())));
System.Xml (6)
System\Xml\Serialization\CodeExporter.cs (5)
307
prop.GetStatements.
Add
(ret);
317
prop.SetStatements.
Add
(propertySet);
321
prop.SetStatements.
Add
(propertySet);
358
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name)));
360
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
System\Xml\Serialization\XmlCodeExporter.cs (1)
479
ctor.Statements.
Add
(assign);
XamlBuildTask (35)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (34)
399
initializeMethod.Statements.
Add
(
415
initializeMethod.Statements.
Add
(
431
initializeMethod.Statements.
Add
(new CodeVariableDeclarationStatement(
437
initializeMethod.Statements.
Add
(
516
initializeMethod.Statements.
Add
(tryCatchFinally);
543
tryStatements.
Add
(new CodeAssignStatement(xmlReaderVar, xmlReader));
550
tryStatements.
Add
(
560
tryStatements.
Add
(
567
tryStatements.
Add
(new CodeAssignStatement(xamlReaderVar, newReader));
574
tryStatements.
Add
(new CodeAssignStatement()
581
tryStatements.
Add
(new CodeAssignStatement()
596
tryStatements.
Add
(new CodeAssignStatement(objWriterVar, newObjectWriter));
616
tryStatements.
Add
(
641
finallyStatements.
Add
(xmlReaderNotNull);
648
finallyStatements.
Add
(xamlReaderNotNull);
655
finallyStatements.
Add
(objWriterNotNull);
737
findResourceMethod.Statements.
Add
(
814
findResourceMethod.Statements.
Add
(
1110
AssemblyList.GetStatements.
Add
(assemblyListNull);
1111
AssemblyList.GetStatements.
Add
(new CodeMethodReturnStatement(assemblyList));
1168
getSchemaContextIfNotNull.TrueStatements.
Add
(assignSchemaContext);
1169
getSchemaContextIfNotNull.TrueStatements.
Add
(xscReturnIfNotNull);
1170
SchemaContext.GetStatements.
Add
(getSchemaContextIfNotNull);
1178
initSchemaContext.TrueStatements.
Add
(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New(AssemblyList)));
1179
initSchemaContext.FalseStatements.
Add
(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New()));
1180
SchemaContext.GetStatements.
Add
(initSchemaContext);
1183
SchemaContext.GetStatements.
Add
(assignSchemaContextField);
1185
SchemaContext.GetStatements.
Add
(new CodeMethodReturnStatement(xsc));
1242
tryCatchExp.TryStatements.
Add
(new CodeAssignStatement(asm,
1260
catchClause.Statements.
Add
(setPublicKeyTokenExp);
1261
catchClause.Statements.
Add
(new CodeAssignStatement(asm,
1272
loadMethod.Statements.
Add
(tryCatchExp);
1273
loadMethod.Statements.
Add
(new CodeMethodReturnStatement(asm));
1326
loadAssembliesMethod.Statements.
Add
(new CodeMethodReturnStatement(assemblyList));
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
15
block.
Add
(new CodeVariableDeclarationStatement()