2 writes to Statements
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (2)
867Statements = { CodeThis.Invoke(initializeMethod.Name) }, 886Statements = { CodeThis.Invoke(initializeMethod.Name) },
602 references to Statements
PresentationBuildTasks (49)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (49)
918_ccRoot.StyleConnectorFn.Statements.Add(css); 940if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 943_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 949_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 965Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 966ccsConnector = _ccRoot.StyleConnectorFn.Statements[_ccRoot.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement; 982_ccRoot.StyleConnectorFn.Statements.Insert(0, cvdsES); 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)); 1035_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1078_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1087_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1102if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 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); 1222_ccRoot.HookupFn.Statements.Add(csEvent); 1235_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1240_ccRoot.HookupFn.Statements.Add(ccsConnector); 1269if (_ccRoot.HookupFn.Statements.Count == 1 && 1270_ccRoot.HookupFn.Statements[0] is CodeSnippetStatement) 1272_ccRoot.HookupFn.Statements.Clear(); 1280_ccRoot.HookupFn.Statements.Add(css); 1288_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2017cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2529cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2559cmmLC.Statements.Add(ccsCL); 2563cmmLC.Statements.Insert(0, ccsCL); 2572cmmLC.Statements.Add(casCL); 2576cmmLC.Statements.Insert(1, casCL); 2606cmmLC.Statements.Add(cvdsresLocator); 2623cmmLC.Statements.Add(cesLC); 2708cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2737cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2766cmmSPV.Statements.Add(new CodeExpressionStatement(cmieSPV)); 2819cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD)); 2844cmmAEH.Statements.Add(new CodeExpressionStatement(cmieAEH)); 3050cmmMain.Statements.Add(cvds); 3070_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3083_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3138cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT)); 3150cmmMain.Statements.Add(csRun); 3207cmmMain.Statements.Add(cvdsAppSplash); 3212cmmMain.Statements.Add(cmieShowSplashScreen);
System (12)
compmod\microsoft\csharp\csharpcodeprovider.cs (4)
1812GenerateStatements(e.Statements); 1898GenerateStatements(e.Statements); 2269GenerateStatements(e.Statements); 2290GenerateStatements(e.Statements);
compmod\microsoft\visualbasic\VBCodeProvider.cs (4)
1918GenerateVBStatements(e.Statements); 1940GenerateVBStatements(e.Statements); 2135GenerateVBStatements(e.Statements); 2154GenerateVBStatements(e.Statements);
compmod\system\codedom\compiler\CodeValidator.cs (4)
238ValidateStatements(e.Statements); 282ValidateStatements(((CodeEntryPointMethod)e).Statements); 296ValidateStatements(e.Statements); 318ValidateStatements(e.Statements);
System.Activities (47)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (47)
722languageProperty.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.settings.Language))); 775constructor.Statements.Add(nullArgumentCondition); 777constructor.Statements.Add( 832getLocationsMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 841getLocationsMethod.Statements.Add(returnLocationsVar); 856getLocationsMethod.Statements.Add(idCondition); 859getLocationsMethod.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("returnLocations"))); 911getExpressionTreeForExpressionMethod.Statements.Add(idCondition); 914getExpressionTreeForExpressionMethod.Statements.Add(new CodeMethodReturnStatement( 946invokeExpressionMethod.Statements.Add(GenerateInitializeDataContextActivity()); 957invokeExpressionMethod.Statements.Add(GenerateDataContextActivitiesCheck(this.expressionDescriptors[0])); 998invokeExpressionMethod.Statements.Add(idCondition); 1001invokeExpressionMethod.Statements.Add(new CodeMethodReturnStatement( 1338isValidMethod.Statements.Add(matchCondition); 1341isValidMethod.Statements.Add( 1346isValidMethod.Statements.Add( 1484expressionMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1508expressionMethod.Statements.Add(statement); 1515expressionMethod.Statements.Add(new CodeMethodReturnStatement(invokeExpression)); 1519expressionMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1544expressionMethod.Statements.Add(statement); 1556wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1561wrapperMethod.Statements.Add(new CodeMethodReturnStatement( 1591expressionMethod.Statements.Add(statement); 1605wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1617wrapperMethod.Statements.Add(setExpression); 1619wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1638expressionMethod.Statements.Add(statement); 1649wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1659wrapperMethod.Statements.Add(setExpression); 1661wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1695fetchMethod.Statements.Add( 1699fetchMethod.Statements.Add(new CodeMethodInvokeExpression( 1731pushMethod.Statements.Add(setValue); 1734pushMethod.Statements.Add(new CodeMethodInvokeExpression( 1836dataContextActivitiesHelper.Statements.Add( 1863setLocationsOffsetMethod.Statements.Add(assignLocationsOffsetStatement); 1869setLocationsOffsetMethod.Statements.Add(baseSetLocationsOffsetMethod); 1894cacheHelper.Statements.Add( 2007constructor.Statements.Add(offsetCheckStatement); 2236validateMethod.Statements.Add(checkLocationCountStatement); 2249validateMethod.Statements.Add(generateNewOffset); 2256validateMethod.Statements.Add(setexpectedLocationsCountStatement); 2260validateMethod.Statements.Add(GenerateLocationReferenceCheck(kvp.Value)); 2265validateMethod.Statements.Add(GenerateLocationReferenceCheck(kvp.Value)); 2281validateMethod.Statements.Add( 2286validateMethod.Statements.Add(
System.Data (120)
fx\src\data\System\Data\CodeGen\datacache.cs (120)
300onRowEvent.Statements.Add(MethodCall(Base(), "OnRow" + eventName, Argument("e"))); 301onRowEvent.Statements.Add(If(IdNotEQ(Event(rowClassName + eventName), Primitive(null)), 339constructor.Statements.Add(MethodCall(This(), "InitClass")); 350constructor.Statements.Add(MethodCall(This(), "InitVars")); 369constructor.Statements.Add( 374constructor.Statements.Add( 379constructor.Statements.Add( 384constructor.Statements.Add(Assign(Property(This(), "Prefix"), Property(Argument("table"),"Prefix"))); 385constructor.Statements.Add(Assign(Property(This(), "MinimumCapacity"), Property(Argument("table"),"MinimumCapacity"))); 386constructor.Statements.Add(Assign(Property(This(), "DisplayExpression"), Property(Argument("table"),"DisplayExpression"))); 424addMethod.Statements.Add(MethodCall(Property(This(), "Rows"), "Add", Argument("row"))); 457addByColName.Statements.Add(VariableDecl(stRowConcreateClassName, "row" + stRowClassName, Cast(stRowConcreateClassName, MethodCall(This(), "NewRow")))); 486addByColName.Statements.Add(assignStmt); 488addByColName.Statements.Add(MethodCall(Property(This(), "Rows"), "Add", varRow)); 489addByColName.Statements.Add(Return(varRow)); 528findBy.Statements.Add(Return(Cast(stRowClassName, MethodCall(Property(This(), "Rows"), "Find", arrayCreate)))); 538getEnumerator.Statements.Add(Return(MethodCall(Property(This(), "Rows"), "GetEnumerator"))); 548clone.Statements.Add(VariableDecl(stTblClassName, "cln", Cast(stTblClassName, MethodCall(Base(), "Clone", new CodeExpression[] {})))); 549clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {})); 550clone.Statements.Add(Return(Variable("cln"))); 558 createInstance.Statements.Add(Return(New(stTblClassName, new CodeExpression[] {}))); 575tableInitClass.Statements.Add(Assign(codeField, 591tableInitClass.Statements.Add(MethodCall(Property(This(), "Columns"), "Add", Field(This(), ColumnName))); 606tableInitClass.Statements.Add(MethodCall(Property(This(), "Constraints"), "Add", 624tableInitVars.Statements.Add(Assign(codeField, Indexer(Property(This(),"Columns"),Str(column.ColumnName)))); 628tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrement"), Primitive(true))); 632tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrementSeed"), Primitive(column.AutoIncrementSeed))); 636tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrementStep"), Primitive(column.AutoIncrementStep))); 640tableInitClass.Statements.Add(Assign(Property(codeField, "AllowDBNull"), Primitive(false))); 644tableInitClass.Statements.Add(Assign(Property(codeField, "ReadOnly"), Primitive(true))); 648tableInitClass.Statements.Add(Assign(Property(codeField, "Unique"), Primitive(true))); 653tableInitClass.Statements.Add(Assign(Property(codeField, "Prefix"), Str(column.Prefix))); 657tableInitClass.Statements.Add(Assign(Property(codeField, "Namespace"), Str(column.Namespace))); 661tableInitClass.Statements.Add(Assign(Property(codeField, "Caption"), Str(column.Caption))); 665tableInitClass.Statements.Add(Assign(Property(codeField, "DefaultValue"), Primitive(column.DefaultValue))); 669tableInitClass.Statements.Add(Assign(Property(codeField, "MaxLength"), Primitive(column.MaxLength))); 675tableInitClass.Statements.Add(Assign(Property(This(), "CaseSensitive"), Primitive(table.CaseSensitive))); 679tableInitClass.Statements.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(table.Locale.ToString())}))); 683tableInitClass.Statements.Add(Assign(Property(This(), "Prefix"), Str(table.Prefix))); 687tableInitClass.Statements.Add(Assign(Property(This(), "Namespace"), Str(table.Namespace))); 692tableInitClass.Statements.Add(Assign(Property(This(), "MinimumCapacity"), Primitive(table.MinimumCapacity))); 696tableInitClass.Statements.Add(Assign(Property(This(), "DisplayExpression"), Str(table.DisplayExpressionInternal))); 707newTableRow.Statements.Add(Return(Cast(stRowConcreateClassName, MethodCall(This(), "NewRow")))); 716newRowFromBuilder.Statements.Add(Return(New(stRowConcreateClassName, new CodeExpression[] {Argument("builder")}))); 724getRowType.Statements.Add(Return(TypeOf(stRowConcreateClassName))); 738removeMethod.Statements.Add(MethodCall(Property(This(), "Rows"), "Remove", Argument("row"))); 770constructor.Statements.Add(Assign(Field(This(), stTblFieldName), Cast(stTblClassName, Property(This(),"Table")))); 901isNull.Statements.Add(Return(MethodCall(This(), "IsNull", Property(Field(This(), stTblFieldName), tableColumnName)))); 909setNull.Statements.Add(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Field(TypeExpr(typeof(Convert)), "DBNull"))); 925childArray.Statements.Add(Return(Cast(Type(rowConcreateClassName, 1), MethodCall(This(), "GetChildRows", Indexer(Property(Property(This(), "Table"), "ChildRelations"), Str(relation.RelationName)))))); 976constructor.Statements.Add(Assign(Field(This(), "eventRow" ), Argument("row" ))); 977constructor.Statements.Add(Assign(Field(This(), "eventAction"), Argument("action"))); 1032constructor.Statements.Add(MethodCall(This(), "BeginInit")); 1033constructor.Statements.Add(MethodCall(This(), "InitClass")); 1034constructor.Statements.Add(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler", 1036constructor.Statements.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler"))); 1037constructor.Statements.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler"))); 1038constructor.Statements.Add(MethodCall(This(), "EndInit")); 1049constructor.Statements.Add( 1060constructor.Statements.Add( 1086constructor.Statements.Add( 1097constructor.Statements.Add(MethodCall(This(), "GetSerializationData", new CodeExpression [] { Argument("info"), Argument("context") })); 1098constructor.Statements.Add(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler", 1100constructor.Statements.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler"))); 1101constructor.Statements.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler"))); 1111clone.Statements.Add(VariableDecl(stDataSetClassName, "cln", Cast(stDataSetClassName, MethodCall(Base(), "Clone", new CodeExpression[] {})))); 1112clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {})); 1113clone.Statements.Add(Return(Variable("cln"))); 1119initDataSetVarsMethod.Statements.Add(MethodCall(This(), "InitVars", new CodeExpression [] {Primitive(true)})); 1131initClassMethod.Statements.Add(Assign(Property(This(), "DataSetName"), Str(dataSet.DataSetName))); 1133initClassMethod.Statements.Add(Assign(Property(This(), "Prefix"), Str(dataSet.Prefix))); 1135initClassMethod.Statements.Add(Assign(Property(This(), "Namespace"), Str(dataSet.Namespace))); 1137initClassMethod.Statements.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(dataSet.Locale.ToString())}))); 1139initClassMethod.Statements.Add(Assign(Property(This(), "CaseSensitive"), Primitive(dataSet.CaseSensitive))); 1141initClassMethod.Statements.Add(Assign(Property(This(), "EnforceConstraints"), Primitive(dataSet.EnforceConstraints))); 1146initClassMethod.Statements.Add(Assign(fieldTable, New(TableClassName(dataSet.Tables[i]), new CodeExpression[] {}))); 1148initClassMethod.Statements.Add(MethodCall(Property(This(), "Tables"), "Add", fieldTable)); 1153initVarsMethod.Statements.Add(Assign(fieldTable, Cast(TableClassName(dataSet.Tables[i]), Indexer(Property(This(),"Tables"),Str(dataSet.Tables[i].TableName))))); 1155initVarsMethod.Statements.Add( 1170shouldSerializeTables.Statements.Add(Return(Primitive(false))); 1178shouldSerializeRelations.Statements.Add(Return(Primitive(false))); 1206getTypedDataSetSchema.Statements.Add(VariableDecl(stDataSetClassName,"ds",New(stDataSetClassName,new CodeExpression[] {}))); 1207getTypedDataSetSchema.Statements.Add(MethodCall(Argument("xs"), "Add", new CodeExpression [] { MethodCall(Variable("ds"), "GetSchemaSerializable", new CodeExpression[] {})})); 1208getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaComplexType),"type",New(typeof(XmlSchemaComplexType),new CodeExpression[] {}))); 1209getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaSequence),"sequence",New(typeof(XmlSchemaSequence),new CodeExpression[] {}))); 1210getTypedDataSetSchema.Statements.Add(VariableDecl(typeof(XmlSchemaAny),"any",New(typeof(XmlSchemaAny),new CodeExpression[] {}))); 1211getTypedDataSetSchema.Statements.Add(Assign(Property(Variable("any"),"Namespace"),Property(Variable("ds"),"Namespace"))); 1212getTypedDataSetSchema.Statements.Add(MethodCall(Property(Variable("sequence"),"Items"), "Add", new CodeExpression [] { Variable("any") })); 1213getTypedDataSetSchema.Statements.Add(Assign(Property(Variable("type"),"Particle"),Variable("sequence"))); 1214getTypedDataSetSchema.Statements.Add(Return(Variable("type"))); 1223readXmlSerializable.Statements.Add(MethodCall(This(), "Reset", new CodeExpression [] {})); 1224readXmlSerializable.Statements.Add(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new CodeExpression[] {}))); 1225readXmlSerializable.Statements.Add(MethodCall(Variable("ds"), "ReadXml", new CodeExpression [] { Argument("reader") })); 1229readXmlSerializable.Statements.Add( 1235readXmlSerializable.Statements.Add(Assign(Property(This(), "DataSetName"), Property(Variable("ds"),"DataSetName"))); 1236readXmlSerializable.Statements.Add(Assign(Property(This(), "Prefix"), Property(Variable("ds"),"Prefix"))); 1237readXmlSerializable.Statements.Add(Assign(Property(This(), "Namespace"), Property(Variable("ds"),"Namespace"))); 1238readXmlSerializable.Statements.Add(Assign(Property(This(), "Locale"), Property(Variable("ds"),"Locale"))); 1239readXmlSerializable.Statements.Add(Assign(Property(This(), "CaseSensitive"), Property(Variable("ds"),"CaseSensitive"))); 1240readXmlSerializable.Statements.Add(Assign(Property(This(), "EnforceConstraints"), Property(Variable("ds"),"EnforceConstraints"))); 1241readXmlSerializable.Statements.Add(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")})); 1242readXmlSerializable.Statements.Add(MethodCall(This(),"InitVars")); 1254getSchemaSerializable.Statements.Add(VariableDecl(typeof(System.IO.MemoryStream), "stream", New(typeof(System.IO.MemoryStream),new CodeExpression[] {}))); 1255getSchemaSerializable.Statements.Add(MethodCall(This(), "WriteXmlSchema", New(typeof(System.Xml.XmlTextWriter),new CodeExpression[] {Argument("stream"),Primitive(null)}))); 1256getSchemaSerializable.Statements.Add(Assign(Property(Argument("stream"),"Position"),Primitive(0))); 1257getSchemaSerializable.Statements.Add(Return(MethodCall(TypeExpr("System.Xml.Schema.XmlSchema"),"Read",new CodeExpression[] {New(typeof(System.Xml.XmlTextReader),new CodeExpression[] {Argument("stream")}), Primitive(null)}))); 1292initClassMethod.Statements.Add(VariableDecl(typeof(ForeignKeyConstraint),"fkc")); 1296initClassMethod.Statements.Add(Assign( 1300initClassMethod.Statements.Add(MethodCall( 1309initClassMethod.Statements.Add(Assign(Property(varFkc,"AcceptRejectRule"),Field(TypeExpr(fkc.AcceptRejectRule.GetType()), acceptRejectRule))); 1310initClassMethod.Statements.Add(Assign(Property(varFkc,"DeleteRule"),Field(TypeExpr(fkc.DeleteRule.GetType()), deleteRule))); 1311initClassMethod.Statements.Add(Assign(Property(varFkc,"UpdateRule"),Field(TypeExpr(fkc.UpdateRule.GetType()), updateRule))); 1337initClassMethod.Statements.Add(Assign( 1344initClassMethod.Statements.Add(Assign(Property(Field(This(), RelationFieldName(relation)), "Nested"), Primitive(true))); 1347initClassMethod.Statements.Add(MethodCall(Property(This(), "Relations"), "Add", Field(This(), RelationFieldName(relation)))); 1350initVarsMethod.Statements.Add(Assign(Field(This(), RelationFieldName(relation)), Indexer(Property(This(),"Relations"),Str(relation.RelationName)))); 1371shouldSerializeTableProperty.Statements.Add(Return(Primitive(false))); 1379schemaChanged.Statements.Add( 1398initExpressionMethod.Statements.Add(Assign(Property(codeField, "Expression"), Str(column.Expression))); 1406initClassMethod.Statements.Add(MethodCall(This(), "InitExpressions"));
System.Data.Entity.Design (20)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (10)
416viewStoringTypeConstructor.Statements.Add(EdmEntityContainerNameStatement); 417viewStoringTypeConstructor.Statements.Add(StoreEntityContainerNameStatement); 418viewStoringTypeConstructor.Statements.Add(HashOverMappingClosureStatement); 419viewStoringTypeConstructor.Statements.Add(HashOverAllExtentViewsStatement); 420viewStoringTypeConstructor.Statements.Add(ViewCountStatement); 517getViewAtMethod.Statements.Add(currentIf); 532getViewAtMethod.Statements.Add(new CodeThrowExceptionStatement( 552CreateSizedStringBuilder(viewMethod.Statements, viewText.Length); 556viewMethod.Statements.Add(appendExpression); 574viewMethod.Statements.Add(new CodeMethodReturnStatement(newExpression));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (7)
224emptyCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 243connectionStringCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 262connectionWorkspaceCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 446codeMethod.Statements.Add( 554method.Statements.Add( 587method.Statements.Add( 619method.Statements.Add(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
191method.Statements.Add(createNewInstance); 232method.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue)); 236method.Statements.Add(new CodeMethodReturnStatement(instanceRef));
System.Data.Services.Design (15)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
790propertyChangedMethod.Statements.Add(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (10)
197connectionWorkspaceCtor.Statements.Add( 211connectionWorkspaceCtor.Statements.Add( 223connectionWorkspaceCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 276resolveTypeFromName.Statements.Add( 311resolveTypeFromName.Statements.Add( 335resolveNameFromType.Statements.Add( 370resolveNameFromType.Statements.Add( 386resolveNameFromType.Statements.Add(new CodeMethodReturnStatement(clientTypeFullName)); 391resolveNameFromType.Statements.Add( 610codeMethod.Statements.Add(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (4)
182method.Statements.Add(createNewInstance); 209method.Statements.Add( 233method.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue)); 237method.Statements.Add(new CodeMethodReturnStatement(instanceRef));
System.Management (161)
WmiGenerator.cs (161)
1139cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()),new CodeVariableReferenceExpression("ManagedObject"))); 1436cmm.Statements.Add(cis2); 1437cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1496cmm2.Statements.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null))); 1599cmm2.Statements.Add(cis); 2102cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath))); 2108cmm.Statements.Add(new CodeVariableDeclarationStatement("System.String",strPathObject,new CodePrimitiveExpression(strPath))); 2137cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strPathObject),cmietoAdd)); 2139cmm.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject))); 2180cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2217cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null))); 2237cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2276cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null))); 2297cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2329cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2359cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2387cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2421cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2457cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2498cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2546cctor.Statements.Add(new CodeExpressionStatement(cmieInit)); 2612cctor.Statements.Add(cis); 2683cctor.Statements.Add(cis); 2757cmmInit.Statements.Add(cis); 2764cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression( 2770cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression( 2774cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2789cctor.Statements.Add(new CodeAssignStatement(cpre, new CodePrimitiveExpression(true))); 2889cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Boolean","IsMethodStatic",new CodePrimitiveExpression(bStatic))); 3248cmm.Statements.Add(cRetVal); 3249cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new CodePrimitiveExpression(null))); 3260cmm.Statements.Add(cRetVal); 3261cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"), 3272cmm.Statements.Add(cRetVal); 3281cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce)); 3316cmm.Statements.Add(cis); 3345cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3377cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3408cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3441cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3514cmm.Statements.Add(cis); 3520cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce)); 3522cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3526cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3537cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()), 3556cmm.Statements.Add(cis); 3566cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 3599cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3631cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3695cmm.Statements.Add(cis); 3707cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(), 3713cmm.Statements.Add(new CodeVariableDeclarationStatement( 3717cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3724cmm.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3733cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 3840cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(baseTypeMemberVariable),cmie)); 3843cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(typeMemberVariable),new CodeVariableReferenceExpression(baseTypeParam))); 3866cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3890cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3916cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3940cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3961cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3986cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4005cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4024cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4043cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4062cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4185cmm.Statements.Add(cis); 4250cmm.Statements.Add(cis); 4280cmm.Statements.Add(cis); 4283cmm.Statements.Add(returnStatement); 4328cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection), 4418cmm.Statements.Add(new CodeExpressionStatement(cmie)); 4420cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr)); 4456cmm.Statements.Add(cfls); 4473cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 4545cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator), 4600cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4617cmm.Statements.Add(new CodeExpressionStatement (cmie)); 5073cmm.Statements.Add(cis); 5108cmm.Statements.Add(cis); 5560cmm.Statements.Add(cis); 5683cmm.Statements.Add(cis); 5684cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 6312cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 6337cmm.Statements.Add(cis1); 6342cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath)); 6350cmm.Statements.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(),strTemp,coce1)); 6361cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 6393cmm.Statements.Add(cmie1); 6447cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),"initializer",new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"),"MinValue"))); 6450cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),year,new CodePropertyReferenceExpression(cvreInitializer,"Year"))); 6453cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),month, new CodePropertyReferenceExpression(cvreInitializer,"Month"))); 6456cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),day,new CodePropertyReferenceExpression(cvreInitializer,"Day"))); 6459cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hour,new CodePropertyReferenceExpression(cvreInitializer,"Hour"))); 6462cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minute,new CodePropertyReferenceExpression(cvreInitializer,"Minute"))); 6465cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),second,new CodePropertyReferenceExpression(cvreInitializer,"Second"))); 6468cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0))); 6471cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtf,new CodeVariableReferenceExpression(dmtfParam))); 6475cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),datetimeVariable,cpreMinVal)); 6478cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),tempStr,new CodeFieldReferenceExpression( 6500cmmdt.Statements.Add(cis); 6519cmmdt.Statements.Add(cis); 6536cmmdt.Statements.Add(cis); 6702cmmdt.Statements.Add(tryblock); 6718cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),coce)); 6728cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie2)); 6740cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tickoffset,cmie1)); 6749cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),utcOffset,new CodePrimitiveExpression(0))); 6751cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),offsetAdjust,new CodePrimitiveExpression(0))); 6759cmmdt.Statements.Add( 6772cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie)); 6837cmmdt.Statements.Add(cis); 6842cmmdt.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable))); 6919cmmts.Statements.Add( 6939cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"maxTimeSpan",cpreMaxVal)); 6959cmmts.Statements.Add(cis); 6969cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"minTimeSpan",cpreMinVal)); 6989cmmts.Statements.Add(cis2); 7006cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7023cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7040cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7047cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7059cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,coce)); 7082cmmts.Statements.Add( 7095cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie)); 7118cmmts.Statements.Add(cis); 7132cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7136cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2)); 7138cmmts.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan))); 7161cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strUtc, 7181cmmdt.Statements.Add( 7195cmmdt.Statements.Add( 7287cmmdt.Statements.Add(cis1); 7305cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtfDateTime,cmie2)); 7339cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime), 7355cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),dtTemp,coce)); 7377cmmdt.Statements.Add( 7391cmmdt.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie1)); 7414cmmdt.Statements.Add(cis1); 7426cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),cmie2)); 7433cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime), 7437cmmdt.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime))); 7464cmmdt.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime), 7487cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),days,new CodePrimitiveExpression(0))); 7489cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hours,new CodePrimitiveExpression(0))); 7491cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minutes,new CodePrimitiveExpression(0))); 7493cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),seconds,new CodePrimitiveExpression(0))); 7495cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0))); 7516cmmts.Statements.Add(cis); 7535cmmts.Statements.Add(cis); 7553cmmts.Statements.Add(cis); 7576cmmts.Statements.Add(cis); 7733cmmts.Statements.Add(tryblock); 7748cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),timespan,coce)); 7759cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,cmie)); 7765cmmts.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(timespan),cmie)); 7771cmmts.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan))); 7801cmMethod.Statements.Add(cmieInit); 7813cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()), 7815cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
System.Runtime.Serialization (12)
System\Runtime\Serialization\CodeExporter.cs (12)
1679readXmlMethod.Statements.Add(setNode); 1693writeXmlMethod.Statements.Add( 1714getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1729getSchemaStaticMethod.Statements.Add( 1737getSchemaStaticMethod.Statements.Add( 1757baseConstructor.Statements.Add(setObjectData); 1761baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1858getObjectDataMethod.Statements.Add(returnIfNull); 1859getObjectDataMethod.Statements.Add(getEnumerator); 1860getObjectDataMethod.Statements.Add(loop); 1911raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1913raisePropertyChangedEventMethod.Statements.Add(ifStatement);
System.ServiceModel (25)
System\ServiceModel\Description\ClientClassGenerator.cs (24)
276helperMethod.Statements.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type))); 287helperMethod.Statements.Add(invokeMethod); 296helperMethod.Statements.Add(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod)); 299helperMethod.Statements.Add(returnStatement); 303helperMethod.Statements.Add(new CodeMethodReturnStatement(invokeMethod)); 325helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type))); 344helperMethod.Statements.Add(new CodeAssignStatement(new CodeArgumentReferenceExpression(param.Name), fieldRef)); 346helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new CodeArgumentReferenceExpression(param.Name))); 464method.Statements.Add(methodInvoke); 466method.Statements.Add(new CodeMethodReturnStatement(methodInvoke)); 541ctor.Statements.Add(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(EventArgsCtorParamNames[0]))); 677onBeginOperationMethod.Statements.Add(variableDecl); 689onBeginOperationMethod.Statements.Add(new CodeMethodReturnStatement(invokeBegin)); 732onEndOperationMethod.Statements.Add(variableDecl); 749onEndOperationMethod.Statements.Add(retValDecl); 753onEndOperationMethod.Statements.Add(invokeEnd); 758onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(retArray)); 762onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 832operationCompletedMethod.Statements.Add(ifEventHandlerNotNullBlock); 865eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(beginOperationDelegate, beginOperationMethod)); 866eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(endOperationDelegate, endOperationMethod)); 867eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(operationCompletedDelegate, operationCompletedMethod)); 883eventAsyncMethod.Statements.Add(new CodeExpressionStatement(invokeAsync)); 910eventAsyncMethodOverload.Statements.Add(invokeEventAsyncMethod);
System\ServiceModel\Description\OperationGenerator.cs (1)
836otherCtor.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)
176codeMemberMethod.Statements.Add(new CodeMethodReturnStatement(expr));
System.Web (78)
Compilation\BaseCodeDomTreeGenerator.cs (4)
373_ctor.Statements.Add(CreateInitInvoke()); 455this.BuildInitStatements(initializedCondition.TrueStatements, InitMethod.Statements); 464InitMethod.Statements.Add(initializedCondition); 788method.Statements.Add(simpleAssignment);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (14)
229method.Statements, fStandardControl, fControlFieldDeclared, null, fControlSkin); 991CodeStatementCollection topLevelStatements = method.Statements; 1015method.Statements.AddRange(statements); 1328method.Statements.Add(stmt); 1331method.Statements.Add(stmt); 1422method.Statements.Add(stmt); 1427method.Statements.Add(stmt); 1479AddOutputWriteStringStatement(method.Statements, (string)child); 1491tempObjectVariableDeclared = GenerateSimpleAssignmentAtDesignTime(tempObjectVariableDeclared, method.Statements, method.Statements, codeExpression, linePragma); 1519method.Statements.Add(lit); 1531method.Statements.Add(lit); 1542method.Statements.Add(statement); 1562method.Statements.Add(methodCall);
Compilation\BrowserCapabilitiesCompiler.cs (3)
358CodeStatementCollection statements = cmm.Statements; 380cmm.Statements.Add(istatement); 439cmm.Statements.Add(istatement);
Compilation\MasterPageCodeDomTreeGenerator.cs (1)
37method.Statements.Add(stmt);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
88AddCreateTypeInstanceStatement(typeToCreate, ccu, method.Statements);
Compilation\PageCodeDomTreeGenerator.cs (18)
140InitMethod.Statements.Add(setScriptTimeout); 145InitMethod.Statements.Add(new CodeAssignStatement( 151InitMethod.Statements.Add(new CodeAssignStatement( 157InitMethod.Statements.Add(new CodeAssignStatement( 311InitMethod.Statements.Add(outputCacheSettingsCondition); 363method.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(Parser.TypeHashCode))); 380method.Statements.Add(setStatment); 389method.Statements.Add(addDeps); 404method.Statements.Add(call); 409method.Statements.Add(new CodeAssignStatement( 415method.Statements.Add(new CodeAssignStatement( 426method.Statements.Add(new CodeExpressionStatement(invokeExpr)); 436method.Statements.Add(statement); 472method.Statements.Add(new CodeMethodReturnStatement(invokeExpr)); 493method.Statements.Add(call); 530method.Statements.Add(new CodeMethodReturnStatement(invokeExpr)); 551method.Statements.Add(call); 602method.Statements.Add(invokeExpr);
Compilation\ProfileBuildProvider.cs (1)
295method.Statements.Add(returnSatement);
Compilation\TemplateControlCodeDomTreeGenerator.cs (5)
155bindMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(String.Empty))); 195method.Statements.Add(new CodeExpressionStatement(baseCallExpression)); 207method.Statements.Add(new CodeExpressionStatement(methCallExpression)); 214method.Statements.Add(new CodeExpressionStatement(call)); 320ctorCode.Statements.Add(CreateInitInvoke());
Configuration\BrowserCapabilitiesCodeGenerator.cs (31)
757method.Statements.Add(istatement); 906method.Statements.Add(baseInvoke); 924method.Statements.Add(cas); 944method.Statements.Add(cas); 969method.Statements.Add(baseInvoke); 978method.Statements.Add(cas); 1012cmm.Statements.Add(cmie); 1039cmm.Statements.Add(cvds); 1043CodeStatementCollection statements = cmm.Statements; 1080cmm.Statements.Add(cmrs); 1095cmm.Statements.Add(expr); 1127cmm.Statements.Add(new CodeVariableDeclarationStatement("RegexWorker", _regexWorkerRefName)); 1130cmm.Statements.Add(new CodeAssignStatement(_regexWorkerRefExpr, new CodeObjectCreateExpression("RegexWorker", _browserCapsRefExpr))); 1143cmm.Statements.Add(emptyCheckStmt); 1151cmm.Statements.Add(new CodeVariableDeclarationStatement(typeof(IDictionary), _dictionaryRefName)); 1158cmm.Statements.Add(assign); 1179cmm.Statements.Add(valueAssignment); 1231cmm.Statements.Add(assign); 1244cmm.Statements.Add(istatement); 1263cmm.Statements.Add(valueAssignment); 1292cmm.Statements.Add(assign); 1305cmm.Statements.Add(istatement); 1312cmm.Statements.Add(cme); 1318cmm.Statements.Add(new CodeVariableDeclarationStatement(varType, varName)); 1362cmm.Statements.Add(cmie); 1388cmm.Statements.Add(cmie); 1421cmm.Statements.Add(assign); 1439cmm.Statements.Add(assignAdapter); 1447cmm.Statements.Add(assignHtmlTextWriter); 1453cmm.Statements.Add(new CodeCommentStatement(comment)); 1489cmm.Statements.Add(xProcess);
System.Web.Services (23)
System\Web\Services\Description\HttpProtocolImporter.cs (6)
180mainCodeMethod.Statements.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke))); 183mainCodeMethod.Statements.Add(new CodeExpressionStatement(invoke)); 211beginCodeMethod.Statements.Add(new CodeMethodReturnStatement(invoke)); 222endCodeMethod.Statements.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke))); 225endCodeMethod.Statements.Add(new CodeExpressionStatement(invoke)); 261asyncCodeMethod.Statements.Add(invoke);
System\Web\Services\Description\ProtocolImporter.cs (5)
444asyncCancelMethod.Statements.Add(invoke); 663ctor.Statements.Add(assignUrlStatement); 673ctor.Statements.Add(new CodeVariableDeclarationStatement(typeof(string), "urlSetting", value)); 692ctor.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[] { assignUrlStatement })); 694ctor.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements));
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
31ctor.Statements.Add(assignVersionStatement);
System\Web\Services\Description\SoapProtocolImporter.cs (7)
873beginCodeMethod.Statements.Add(new CodeMethodReturnStatement(invoke)); 937asyncCodeMethod.Statements.Add(invoke); 968codeMethod.Statements.Add(new CodeExpressionStatement(invoke)); 971codeMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(object[]), resultsName, invoke)); 981codeMethod.Statements.Add(new CodeAssignStatement(target, value)); 988codeMethod.Statements.Add(new CodeAssignStatement(target, value)); 997codeMethod.Statements.Add(new CodeMethodReturnStatement(value));
System\Web\Services\Description\WebCodeGenerator.cs (4)
311asyncCompleted.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0])); 327asyncCodeMethod.Statements.Add(invoke); 344asyncCodeMethod.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0])); 388ctor.Statements.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), data.Name), new CodeArgumentReferenceExpression(results)));
System.Workflow.Activities (4)
WebServiceReceive.cs (4)
844webMethod.Statements.Add(resultsDeclaration); 854webMethod.Statements.Add(assignStatement); 867webMethod.Statements.Add(methodReturnStatement); 871webMethod.Statements.Add(baseInvokeExpression);
System.Workflow.ComponentModel (7)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (7)
47ctor.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), _initMethodName)); 92CodeStatement[] codeStatements = new CodeStatement[method.Statements.Count]; 93method.Statements.CopyTo(codeStatements, 0); 94method.Statements.Clear(); 99method.Statements.Add(beginInit); 102method.Statements.Add(s); 107method.Statements.Add(endInit);
System.Xml (4)
System\Xml\Serialization\CodeExporter.cs (2)
358raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name))); 360raisePropertyChangedEventMethod.Statements.Add(ifStatement);
System\Xml\Serialization\XmlCodeExporter.cs (2)
479ctor.Statements.Add(assign); 556if (ctor.Statements.Count == 0) codeClass.Members.Remove(ctor);
XamlBuildTask (24)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (24)
399initializeMethod.Statements.Add( 415initializeMethod.Statements.Add( 431initializeMethod.Statements.Add(new CodeVariableDeclarationStatement( 433initializeMethod.Statements.Add(new CodeMethodInvokeExpression( 437initializeMethod.Statements.Add( 456initializeMethod.Statements.DeclareVar( 473initializeMethod.Statements.DeclareVar( 502CodeVariableReferenceExpression xmlReaderVar = initializeMethod.Statements.DeclareVar( 505CodeVariableReferenceExpression xamlReaderVar = initializeMethod.Statements.DeclareVar( 508CodeVariableReferenceExpression objWriterVar = initializeMethod.Statements.DeclareVar( 516initializeMethod.Statements.Add(tryCatchFinally); 521initializeMethod.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "AfterInitializeComponent")); 708findResourceMethod.Statements.DeclareVar( 737findResourceMethod.Statements.Add( 814findResourceMethod.Statements.Add( 1221CodeVariableReferenceExpression assemblyName = loadMethod.Statements.DeclareVar(typeof(AssemblyName), "assemblyName", initAssemblyName); 1223CodeVariableReferenceExpression publicKeyToken = loadMethod.Statements.DeclareVar(typeof(byte[]), 1235CodeVariableReferenceExpression asm = loadMethod.Statements.DeclareVar(typeof(Assembly), "asm", new CodePrimitiveExpression(null)); 1272loadMethod.Statements.Add(tryCatchExp); 1273loadMethod.Statements.Add(new CodeMethodReturnStatement(asm)); 1297CodeVariableReferenceExpression assemblyList = loadAssembliesMethod.Statements.DeclareVar(typeof(IList<Assembly>), 1302loadAssembliesMethod.Statements.Add( 1315loadAssembliesMethod.Statements.Add( 1326loadAssembliesMethod.Statements.Add(new CodeMethodReturnStatement(assemblyList));