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)); 1028ccsConnector.TrueStatements.Add(casES); 1029ccsConnector.TrueStatements.Add(casEvent); 1030ccsConnector.TrueStatements.Add(casHandler); 1031ccsConnector.TrueStatements.Add(new CodeExpressionStatement(cmieAdd)); 1035_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1078_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1082ccsConnector.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); 1210ccsConnector.TrueStatements.Add(casName); 1222_ccRoot.HookupFn.Statements.Add(csEvent); 1226ccsConnector.TrueStatements.Add(csEvent); 1235_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1239ccsConnector.TrueStatements.Add(new CodeMethodReturnStatement()); 1240_ccRoot.HookupFn.Statements.Add(ccsConnector); 1280_ccRoot.HookupFn.Statements.Add(css); 1288_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2017cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2529cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2556ccsCL.TrueStatements.Add(new CodeMethodReturnStatement()); 2559cmmLC.Statements.Add(ccsCL); 2572cmmLC.Statements.Add(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);
System (3)
compmod\system\codedom\CodeStatementCollection.cs (3)
77return Add(new CodeExpressionStatement(value)); 89this.Add(value[i]); 104this.Add(value[i]);
System.Activities (51)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (51)
508accessorProperty.GetStatements.Add(getterStatement); 530accessorPropertyForReadOnly.GetStatements.Add(getterStatement); 560accessorProperty.GetStatements.Add(exception); 561accessorProperty.SetStatements.Add(exception); 574accessorPropertyForReadOnly.GetStatements.Add(exception); 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( 1125statements.Add(cachedCompiledDataContextArray); 1126statements.Add(conditionStatement); 1149compiledDataContextStatements.Add(dataContextVariable); 1202compiledDataContextStatements.Add(returnStatement); 1221compiledDataContextStatements.Add(dataContextVariable); 1229compiledDataContextStatements.Add(returnStatement); 1248compiledDataContextStatements.Add(dataContextVariable); 1257compiledDataContextStatements.Add(returnStatement); 1335matchCondition.TrueStatements.Add(assignId); 1336matchCondition.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 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); 1561wrapperMethod.Statements.Add(new CodeMethodReturnStatement( 1591expressionMethod.Statements.Add(statement); 1638expressionMethod.Statements.Add(statement); 1695fetchMethod.Statements.Add( 1836dataContextActivitiesHelper.Statements.Add( 1863setLocationsOffsetMethod.Statements.Add(assignLocationsOffsetStatement); 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 (104)
fx\src\data\System\Data\CodeGen\datacache.cs (104)
301onRowEvent.Statements.Add(If(IdNotEQ(Event(rowClassName + eventName), Primitive(null)), 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"))); 395countProp.GetStatements.Add(Return(Property(Property(This(), "Rows"), "Count"))); 405colProp.GetStatements.Add(Return(Field(This(), TableColumnFieldName(column)))); 415thisIndex.GetStatements.Add(Return(Cast(stRowConcreateClassName, Indexer(Property(This(), "Rows"), Argument("index"))))); 457addByColName.Statements.Add(VariableDecl(stRowConcreateClassName, "row" + stRowClassName, Cast(stRowConcreateClassName, MethodCall(This(), "NewRow")))); 486addByColName.Statements.Add(assignStmt); 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[] {})))); 550clone.Statements.Add(Return(Variable("cln"))); 558 createInstance.Statements.Add(Return(New(stTblClassName, new CodeExpression[] {}))); 575tableInitClass.Statements.Add(Assign(codeField, 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))); 770constructor.Statements.Add(Assign(Field(This(), stTblFieldName), Cast(stTblClassName, Property(This(),"Table")))); 891rowProp.GetStatements.Add(getStmnt); 892rowProp.SetStatements.Add(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Value())); 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)))))); 944anotherProp.GetStatements.Add(Return(Cast(ParentTypedRowName, MethodCall(This(), "GetParentRow", Indexer(Property(Property(This(), "Table"), "ParentRelations"), Str(relation.RelationName)))))); 976constructor.Statements.Add(Assign(Field(This(), "eventRow" ), Argument("row" ))); 977constructor.Statements.Add(Assign(Field(This(), "eventAction"), Argument("action"))); 985rowProp.GetStatements.Add(Return(Field(This(), "eventRow"))); 993rowProp.GetStatements.Add(Return(Field(This(), "eventAction"))); 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"))); 1049constructor.Statements.Add( 1060constructor.Statements.Add( 1086constructor.Statements.Add( 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[] {})))); 1113clone.Statements.Add(Return(Variable("cln"))); 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[] {}))); 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[] {}))); 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"))); 1213getTypedDataSetSchema.Statements.Add(Assign(Property(Variable("type"),"Particle"),Variable("sequence"))); 1214getTypedDataSetSchema.Statements.Add(Return(Variable("type"))); 1224readXmlSerializable.Statements.Add(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new CodeExpression[] {}))); 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"))); 1254getSchemaSerializable.Statements.Add(VariableDecl(typeof(System.IO.MemoryStream), "stream", New(typeof(System.IO.MemoryStream),new CodeExpression[] {}))); 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( 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))); 1350initVarsMethod.Statements.Add(Assign(Field(This(), RelationFieldName(relation)), Indexer(Property(This(),"Relations"),Str(relation.RelationName)))); 1366prop.GetStatements.Add(Return(Field(This(), TableFieldName(dataSet.Tables[i])))); 1371shouldSerializeTableProperty.Statements.Add(Return(Primitive(false))); 1379schemaChanged.Statements.Add( 1398initExpressionMethod.Statements.Add(Assign(Property(codeField, "Expression"), Str(column.Expression))); 1563ccc.Statements.Add(catchStmnt);
System.Data.Entity.Design (33)
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); 526currentIf.TrueStatements.Add(returnViewMethodCall); 532getViewAtMethod.Statements.Add(new CodeThrowExceptionStatement( 574viewMethod.Statements.Add(new CodeMethodReturnStatement(newExpression)); 586statements.Add(viewStringDeclaration);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
386codeProperty.GetStatements.Add( 403codeProperty.GetStatements.Add( 554method.Statements.Add( 587method.Statements.Add( 619method.Statements.Add(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
195property.SetStatements.Add( 213property.SetStatements.Add( 242property.SetStatements.Add( 270property.GetStatements.Add(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (11)
240statements.Add( 251statements.Add( 257statements.Add(new CodeMethodReturnStatement(FieldRef)); 265statements.Add( 275statements.Add(new CodeMethodReturnStatement(FieldRef)); 360statements.Add( 485statements.Add( 496statements.Add( 523statements.Add( 534statements.Add( 542statements.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 (26)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
790propertyChangedMethod.Statements.Add(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (10)
197connectionWorkspaceCtor.Statements.Add( 211connectionWorkspaceCtor.Statements.Add( 276resolveTypeFromName.Statements.Add( 311resolveTypeFromName.Statements.Add( 335resolveNameFromType.Statements.Add( 370resolveNameFromType.Statements.Add( 386resolveNameFromType.Statements.Add(new CodeMethodReturnStatement(clientTypeFullName)); 391resolveNameFromType.Statements.Add( 547codeProperty.GetStatements.Add( 564codeProperty.GetStatements.Add(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (5)
176property.SetStatements.Add( 227property.SetStatements.Add(ccs); 232csc.Add(new CodeAssignStatement(getMethod, valueRef)); 240csc.Add(s); 271property.GetStatements.Add(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (6)
245statements.Add( 274statements.Add(new CodeMethodReturnStatement(FieldRef)); 282statements.Add( 307statements.Add(new CodeMethodReturnStatement(FieldRef)); 359statements.Add( 369statements.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 (347)
WmiGenerator.cs (347)
994cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeSnippetExpression(propValue.ToString()))); 998cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodePrimitiveExpression(propValue))); 1039cmp.GetStatements.Add(new CodeMethodReturnStatement(Value)); 1041cmp.SetStatements.Add(new CodeAssignStatement(Value, 1077cis.TrueStatements.Add(new CodeMethodReturnStatement(cpre)); 1078cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1079cmp.GetStatements.Add(cis); 1107cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce)); 1108cis.TrueStatements.Add(cis1); 1111cis.TrueStatements.Add(new CodeAssignStatement(cpre, 1114cmp.SetStatements.Add(cis); 1139cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()),new CodeVariableReferenceExpression("ManagedObject"))); 1192cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1343cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) )); 1344cis.FalseStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(false) )); 1345cmp2.GetStatements.Add (cis); 1369cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(null))); 1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1399cis.TrueStatements.Add(new CodeMethodReturnStatement( 1406cis.TrueStatements.Add(new CodeMethodReturnStatement (cmie)); 1409cmp.GetStatements.Add (cis); 1434cis2.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 1436cmm.Statements.Add(cis2); 1437cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1477cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1482cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1496cmm2.Statements.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null))); 1555ccs.TrueStatements.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null))); 1556ccs.FalseStatements.Add(new CodeAssignStatement(cie,new CodeSnippetExpression("value"))); 1557cmp.SetStatements.Add(ccs); 1562cmp.SetStatements.Add(new CodeAssignStatement(cie,new CodeSnippetExpression("value"))); 1594cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 1596cmp.SetStatements.Add(cis); 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)); 2595cis.TrueStatements.Add(new CodeAssignStatement( 2602cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce)); 2603cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2609cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce)); 2612cctor.Statements.Add(cis); 2663cis.TrueStatements.Add(new CodeAssignStatement( 2670cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce)); 2671cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2674cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()), 2680cis.FalseStatements.Add(new CodeThrowExceptionStatement(coce)); 2683cctor.Statements.Add(cis); 2754cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce)); 2756cis.TrueStatements.Add(cis1); 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))); 2905cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), 2915cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath)); 2926cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1)); 2941cis.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Boolean", 2944cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodePrimitiveExpression(true))); 2965cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie)); 3029cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "), 3034cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name)))); 3067cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie)); 3144cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), 3155cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2)); 3174cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),coce)); 3178cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), 3191cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2)); 3195cis.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), 3218cis.TrueStatements.Add(cmis); 3227cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()), 3236cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString()))); 3248cmm.Statements.Add(cRetVal); 3249cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new CodePrimitiveExpression(null))); 3254cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3255cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 3260cmm.Statements.Add(cRetVal); 3261cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"), 3266cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3267cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3272cmm.Statements.Add(cRetVal); 3281cmm.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce)); 3285cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3286cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3297cis.TrueStatements.Add(new CodeMethodReturnStatement(cmie)); 3304cis.FalseStatements.Add(new CodeMethodReturnStatement(cmie)); 3309cis.TrueStatements.Add(new CodeMethodReturnStatement( 3312cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 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)); 3502cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce)); 3504cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3510cis1.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3513cis.TrueStatements.Add(cis1); 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()), 3549cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()), 3551cis.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3556cmm.Statements.Add(cis); 3566cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 3599cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3631cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3683cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce)); 3685cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3690cis1.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()), 3694cis.TrueStatements.Add(cis1); 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)); 4152cis.TrueStatements.Add(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value")))); 4180cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" ")))); 4182cis.TrueStatements.Add(returnStatement); 4185cmm.Statements.Add(cis); 4245cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression("")))); 4247cis.TrueStatements.Add(returnStatement); 4250cmm.Statements.Add(cis); 4278cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(""))); 4280cmm.Statements.Add(cis); 4283cmm.Statements.Add(returnStatement); 4328cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection), 4345cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4363cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4380cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression())); 4418cmm.Statements.Add(new CodeExpressionStatement(cmie)); 4420cmm.Statements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr)); 4454cfls.Statements.Add(new CodeExpressionStatement(cmie)); 4456cmm.Statements.Add(cfls); 4473cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 4545cctor.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator), 4568cmp.GetStatements.Add(new CodeMethodReturnStatement(coce)); 4600cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4617cmm.Statements.Add(new CodeExpressionStatement (cmie)); 5072cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 5073cmm.Statements.Add(cis); 5107cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 5108cmm.Statements.Add(cis); 5439cmp.GetStatements.Add (new CodeVariableDeclarationStatement("System.String",strRetVar, 5459cis.TrueStatements.Add(cis1); 5461cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar), 5485cis2.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar), 5488cis1.TrueStatements.Add(cis2); 5490cmp.GetStatements.Add(cis); 5492cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeVariableReferenceExpression(strRetVar))); 5548cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5559cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre,coce))); 5560cmm.Statements.Add(cis); 5621cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5628cis.FalseStatements.Add(new CodeVariableDeclarationStatement("System.Array",strDerivation,cs)); 5639cis1.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0))); 5676cis2.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5678cis1.TrueStatements.Add(cfls); 5679cfls.Statements.Add(cis2); 5681cis.FalseStatements.Add(cis1); 5683cmm.Statements.Add(cis); 5684cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 5719cis1.TrueStatements.Add (new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie))); 5720statColl.Add(cis1); 5721statColl.Add (new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 5726statColl.Add(new CodeAssignStatement(varToAssign,new CodePrimitiveExpression(null))); 5727cis1.TrueStatements.Add (new CodeAssignStatement(varToAssign ,CreateObjectForProperty(strType,cmie))); 5728statColl.Add(cis1); 5734statColl.Add(cis1); 5747cis1.TrueStatements.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,ce))); 5748cis1.FalseStatements.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,null))); 5752cis1.TrueStatements.Add(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,ce))); 5753cis1.FalseStatements.Add(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,null))); 5793cis1.TrueStatements.Add( 5805cis1.TrueStatements.Add( 5856cfls.Statements.Add( new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray), 5859cis1.TrueStatements.Add(cfls); 5862cis1.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray))); 5863statColl.Add (cis1); 5864statColl.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 5869statColl.Add(new CodeAssignStatement(varToAssign,new CodePrimitiveExpression(null))); 5870cis1.TrueStatements.Add(new CodeAssignStatement(varToAssign ,new CodeVariableReferenceExpression(strArray))); 5871statColl.Add (cis1); 5890statColl.Add(new CodeAssignStatement(prop, 5915cis1.TrueStatements.Add( 5926cis1.TrueStatements.Add( 5968cfls.Statements.Add( new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(strArray), 5971cis1.TrueStatements.Add(cfls); 5973cis1.TrueStatements.Add(new CodeAssignStatement(prop,new CodeVariableReferenceExpression(strArray))); 5974cis1.FalseStatements.Add(new CodeAssignStatement(prop,new CodePrimitiveExpression(null))); 5975statColl.Add (cis1); 6104cis.TrueStatements.Add(new CodeMethodReturnStatement(Value)); 6105cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 6107cmp.GetStatements.Add(cis); 6116cis.TrueStatements.Add(new CodeAssignStatement(Value, 6119cmp.SetStatements.Add(cis); 6133cmProp.GetStatements.Add(new CodeVariableDeclarationStatement("System.Array",strArray, 6136cmProp.GetStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(strEnumName,1),ArrToRet, 6143cmProp.GetStatements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0))); 6166cfls.Statements.Add(new CodeAssignStatement(new CodeIndexerExpression(new CodeVariableReferenceExpression(ArrToRet), 6171cmProp.GetStatements.Add(cfls); 6173cmProp.GetStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(ArrToRet))); 6312cmm.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()), 6325cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),coce)); 6327cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 6333cis1.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope), 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)); 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( 6498cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6500cmmdt.Statements.Add(cis); 6517cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6519cmmdt.Statements.Add(cis); 6534cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6536cmmdt.Statements.Add(cis); 6559tryblock.TryStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie)); 6585cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks),cboe2)); 6587tryblock.TryStatements.Add(cis); 6670cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6672tryblock.TryStatements.Add(cis); 6694catchblock.Statements.Add(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs)); 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)); 6807cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie)); 6815tryblock2.TryStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(utcOffset), cmie)); 6823cis.TrueStatements.Add(tryblock2); 6829cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new CodeTypeReference("System.Int32"),cboe))); 6835cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie)); 6837cmmdt.Statements.Add(cis); 6842cmmdt.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable))); 6862cmmdt.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempVarName), cmie)); 6876cis.TrueStatements.Add( new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign),cmie)); 6878cmmdt.Add(cis); 6919cmmts.Statements.Add( 6939cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"maxTimeSpan",cpreMaxVal)); 6957cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6959cmmts.Statements.Add(cis); 6969cmmts.Statements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"minTimeSpan",cpreMinVal)); 6987cis2.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 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)); 7117cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(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( 7227cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam),cmie1)); 7228cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),new CodePrimitiveExpression("+000"))); 7257cis2.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc), 7269cis2.FalseStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),"strTemp",cmie1)); 7284cis2.FalseStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc), 7286cis1.FalseStatements.Add(cis2); 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)); 7413cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(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))); 7514cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7516cmmts.Statements.Add(cis); 7533cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7535cmmts.Statements.Add(cis); 7551cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7553cmmts.Statements.Add(cis); 7574cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7576cmmts.Statements.Add(cis); 7585tryblock.TryStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strTemp, 7615tryblock.TryStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp),cmie)); 7624tryblock.TryStatements.Add 7702cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7725catchblock.Statements.Add(new CodeThrowExceptionStatement(codeThrowExceptionWithArgs)); 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))); 7787statCol.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strTemp),cmie)); 7793statCol.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strVarToAssign),cmie)); 7813cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()), 7815cmmInit.Statements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
System.Runtime.Serialization (19)
System\Runtime\Serialization\CodeExporter.cs (19)
1679readXmlMethod.Statements.Add(setNode); 1714getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1737getSchemaStaticMethod.Statements.Add( 1757baseConstructor.Statements.Add(setObjectData); 1761baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1818returnIfNull.TrueStatements.Add(new CodeMethodReturnStatement()); 1855loop.Statements.Add(getCurrent); 1856loop.Statements.Add(addValue); 1858getObjectDataMethod.Statements.Add(returnIfNull); 1859getObjectDataMethod.Statements.Add(getEnumerator); 1860getObjectDataMethod.Statements.Add(loop); 1890extensionDataObjectProperty.GetStatements.Add(propertyGet); 1895extensionDataObjectProperty.SetStatements.Add(propertySet); 1911raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1913raisePropertyChangedEventMethod.Statements.Add(ifStatement); 1950property.GetStatements.Add(propertyGet); 1971ifStatement.TrueStatements.Add(propertySet); 1973property.SetStatements.Add(ifStatement); 1976property.SetStatements.Add(propertySet);
System.ServiceModel (22)
System\ServiceModel\Description\ClientClassGenerator.cs (21)
276helperMethod.Statements.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type))); 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))); 466method.Statements.Add(new CodeMethodReturnStatement(methodInvoke)); 541ctor.Statements.Add(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(EventArgsCtorParamNames[0]))); 610property.GetStatements.Add(returnStmt); 677onBeginOperationMethod.Statements.Add(variableDecl); 689onBeginOperationMethod.Statements.Add(new CodeMethodReturnStatement(invokeBegin)); 732onEndOperationMethod.Statements.Add(variableDecl); 749onEndOperationMethod.Statements.Add(retValDecl); 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));
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 (161)
Compilation\BaseCodeDomTreeGenerator.cs (10)
457initializedCondition.TrueStatements.Add(new CodeAssignStatement( 464InitMethod.Statements.Add(initializedCondition); 532prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression( 554prop.GetStatements.Add(new CodeMethodReturnStatement(fieldRef)); 555prop.SetStatements.Add(new CodeAssignStatement( 618ifStmt.TrueStatements.Add(new CodeAssignStatement(fieldAccess, propertyInitExpression)); 620prop.GetStatements.Add(ifStmt); 621prop.GetStatements.Add(new CodeMethodReturnStatement(fieldAccess)); 662prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(declaredType, getObject))); 788method.Statements.Add(simpleAssignment);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (60)
94methodStatements.Add(outputWriteStmt); 119methodStatements.Add(call); 133statements.Add(parserDeclaration); 144statements.Add(methCallStatement); 257statements.Add(new CodeVariableDeclarationStatement(builder.ControlType.FullName, "__ctrl", cast)); 288statements.Add(new CodeVariableDeclarationStatement(ctrlTypeRef, "__ctrl")); 294statements.Add(setCtl); 302statements.Add(underscoreCtlSet); 309statements.Add(BuildTemplatePropertyStatement(ctrlRefExpr)); 318statements.Add(set); 388currentStmts.Add(set); 400statements.Add(methCallStatement); 417currentStmts.Add(statement); 427statements.Add(methCallStatement); 504contentTemplateIfStmt.TrueStatements.Add(setStatement); 506statements.Add(contentTemplateIfStmt); 531templateIfStmt.TrueStatements.Add(new CodeExpressionStatement(instantiateTemplateExpr)); 533statements.Add(templateIfStmt); 573currentStmts.Add(ceStatement); 602statements.Add(new CodeExpressionStatement(methCallExpression)); 637buildSubControlBlock.Add(new CodeVariableDeclarationStatement(ctrlTypeReference, localVariableRef)); 642buildSubControlBlock.Add(setCtl); 694buildSubControlBlock.Add(new CodeExpressionStatement(call)); 764currentStmts.Add(setStatment); 797currentStmts.Add(methCallStatement); 805currentStmts.Add(new CodeVariableDeclarationStatement(ctrlTypeReference, localVariableRef)); 817currentStmts.Add(setCtl); 824currentStmts.Add(methCallStatement); 833currentStmts.Add(set); 884statements.Add(attachEvent); 897statements.Add(attachEvent); 925templateIfStmt.TrueStatements.Add(methCallStatement); 926statements.Add(templateIfStmt); 929statements.Add(methCallStatement); 953statements.Add(detachEvent); 958statements.Add(attachEvent); 964statements.Add(new CodeMethodReturnStatement(ctrlRefExpr)); 999topLevelStatements.Add(tableDecl); 1006statements.Add(newTableAssign); 1012statements.Add(returnStatement); 1058topLevelStatements.Add(controlDecl); 1071topLevelStatements.Add(findControlAssign); 1099ifStatement.TrueStatements.Add(tableIndexAssign); 1101currentStatements.Add(ifStatement); 1250topMethodStatements.Add(containerDecl); 1251topMethodStatements.Add(targetDecl); 1258otherMethodStatements.Add(setTarget); 1266otherMethodStatements.Add(setContainer); 1324otherMethodStatements.Add(setDataBoundStringCall); 1328method.Statements.Add(stmt); 1331method.Statements.Add(stmt); 1422method.Statements.Add(stmt); 1427method.Statements.Add(stmt); 1519method.Statements.Add(lit); 1531method.Statements.Add(lit); 1542method.Statements.Add(statement); 1562method.Statements.Add(methodCall); 1573topMethodStatements.Add(new CodeVariableDeclarationStatement( 1582otherMethodStatements.Add(simpleAssignment); 1762currentStmts.Add(ifStmt);
Compilation\BrowserCapabilitiesCompiler.cs (2)
380cmm.Statements.Add(istatement); 439cmm.Statements.Add(istatement);
Compilation\CodeDOMUtility.cs (3)
265statements.Add(setAttributeCall); 278statements.Add(assignStmt); 296statements.Add(assignStmt);
Compilation\DataBindingExpressionBuilder.cs (7)
61statements.Add(ifStmt); 84methodStatements.Add(targetDecl); 93statements.Add(setTarget); 97methodStatements.Add(containerDecl); 105statements.Add(setContainer); 121declarationStatements.Add(itemTypeDecl); 129codeStatements.Add(setDataItem);
Compilation\MasterPageCodeDomTreeGenerator.cs (1)
37method.Statements.Add(stmt);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (7)
117statements.Add(new CodeVariableDeclarationStatement(typeof(IServiceProvider), "__activator")); 119statements.Add(new CodeAssignStatement(activatorRefExpr, webObjectActivatorExpr)); 127createObjectStatement.TrueStatements.Add(new CodeMethodReturnStatement(getServiceExpr)); 132createObjectStatement.FalseStatements.Add(new CodeMethodReturnStatement(newObjectExpr)); 138createObjectStatement.FalseStatements.Add(throwExceptionStatement); 140statements.Add(createObjectStatement); 145statements.Add(new CodeMethodReturnStatement(newObjectExpression));
Compilation\PageCodeDomTreeGenerator.cs (29)
94trueStatements.Add(assignDependencies); 106trueStatements.Add(addFileDep); 121trueStatements.Add(initFile); 140InitMethod.Statements.Add(setScriptTimeout); 145InitMethod.Statements.Add(new CodeAssignStatement( 151InitMethod.Statements.Add(new CodeAssignStatement( 157InitMethod.Statements.Add(new CodeAssignStatement( 212outputCacheSettingsCondition.TrueStatements.Add(setOutputCacheObject); 219outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 227outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 235outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 245outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 253outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 261outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 269outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 277outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 285outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 292outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 300outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 309outputCacheSettingsCondition.TrueStatements.Add(assignOutputCacheSettings); 311InitMethod.Statements.Add(outputCacheSettingsCondition); 363method.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(Parser.TypeHashCode))); 380method.Statements.Add(setStatment); 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)); 530method.Statements.Add(new CodeMethodReturnStatement(invokeExpr));
Compilation\PageThemeCodeDomTreeGenerator.cs (2)
47member.GetStatements.Add(returnStmt); 55statements.Add(BuildControlSkinAssignmentStatement(builder, skinID));
Compilation\ProfileBuildProvider.cs (3)
205prop.GetStatements.Add(getLine); 255prop.GetStatements.Add(getLine); 295method.Statements.Add(returnSatement);
Compilation\TemplateControlCodeDomTreeGenerator.cs (9)
58trueStatements.Add(readResource); 83topLevelStatements.Add(setProp); 131prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(propertyType, propRef))); 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)); 237prop.GetStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 268prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
Configuration\BrowserCapabilitiesCodeGenerator.cs (28)
756istatement.TrueStatements.Add(new CodeMethodReturnStatement()); 757method.Statements.Add(istatement); 924method.Statements.Add(cas); 944method.Statements.Add(cas); 978method.Statements.Add(cas); 1039cmm.Statements.Add(cvds); 1054statements.Add(codeAssignStmt); 1080cmm.Statements.Add(cmrs); 1127cmm.Statements.Add(new CodeVariableDeclarationStatement("RegexWorker", _regexWorkerRefName)); 1130cmm.Statements.Add(new CodeAssignStatement(_regexWorkerRefExpr, new CodeObjectCreateExpression("RegexWorker", _browserCapsRefExpr))); 1142emptyCheckStmt.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1143cmm.Statements.Add(emptyCheckStmt); 1151cmm.Statements.Add(new CodeVariableDeclarationStatement(typeof(IDictionary), _dictionaryRefName)); 1158cmm.Statements.Add(assign); 1179cmm.Statements.Add(valueAssignment); 1231cmm.Statements.Add(assign); 1243istatement.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1244cmm.Statements.Add(istatement); 1263cmm.Statements.Add(valueAssignment); 1292cmm.Statements.Add(assign); 1304istatement.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1305cmm.Statements.Add(istatement); 1318cmm.Statements.Add(new CodeVariableDeclarationStatement(varType, varName)); 1421cmm.Statements.Add(assign); 1439cmm.Statements.Add(assignAdapter); 1447cmm.Statements.Add(assignHtmlTextWriter); 1453cmm.Statements.Add(new CodeCommentStatement(comment)); 1473stmts.Add(conditionStmt);
System.Web.Services (22)
System\Web\Services\Description\HttpProtocolImporter.cs (5)
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));
System\Web\Services\Description\ProtocolImporter.cs (4)
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 (6)
873beginCodeMethod.Statements.Add(new CodeMethodReturnStatement(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 (6)
96prop.GetStatements.Add(ret); 100prop.SetStatements.Add(new CodeAssignStatement(left, right)); 311asyncCompleted.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0])); 344asyncCodeMethod.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0])); 388ctor.Statements.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), data.Name), new CodeArgumentReferenceExpression(results))); 415prop.GetStatements.Add(ret);
System.Workflow.Activities (3)
WebServiceReceive.cs (3)
844webMethod.Statements.Add(resultsDeclaration); 854webMethod.Statements.Add(assignStatement); 867webMethod.Statements.Add(methodReturnStatement);
System.Workflow.ComponentModel (9)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (3)
99method.Statements.Add(beginInit); 102method.Statements.Add(s); 107method.Statements.Add(endInit);
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
152retVal.Add(new CodeAttachEventStatement(eventRef, listener)); 202retVal.Add(new CodeAssignStatement(propertyRef, new CodeTypeOfExpression(typeName)));
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (3)
64statements.Add(result as CodeStatement); 70statements.Add(new CodeAssignStatement(varExpression, result as CodeExpression)); 108statements.Add(varDecl);
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
38statements.Add(new CodeVariableDeclarationStatement(obj.GetType(), variableName, new CodeObjectCreateExpression(obj.GetType())));
System.Xml (6)
System\Xml\Serialization\CodeExporter.cs (5)
307prop.GetStatements.Add(ret); 317prop.SetStatements.Add(propertySet); 321prop.SetStatements.Add(propertySet); 358raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name))); 360raisePropertyChangedEventMethod.Statements.Add(ifStatement);
System\Xml\Serialization\XmlCodeExporter.cs (1)
479ctor.Statements.Add(assign);
XamlBuildTask (35)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (34)
399initializeMethod.Statements.Add( 415initializeMethod.Statements.Add( 431initializeMethod.Statements.Add(new CodeVariableDeclarationStatement( 437initializeMethod.Statements.Add( 516initializeMethod.Statements.Add(tryCatchFinally); 543tryStatements.Add(new CodeAssignStatement(xmlReaderVar, xmlReader)); 550tryStatements.Add( 560tryStatements.Add( 567tryStatements.Add(new CodeAssignStatement(xamlReaderVar, newReader)); 574tryStatements.Add(new CodeAssignStatement() 581tryStatements.Add(new CodeAssignStatement() 596tryStatements.Add(new CodeAssignStatement(objWriterVar, newObjectWriter)); 616tryStatements.Add( 641finallyStatements.Add(xmlReaderNotNull); 648finallyStatements.Add(xamlReaderNotNull); 655finallyStatements.Add(objWriterNotNull); 737findResourceMethod.Statements.Add( 814findResourceMethod.Statements.Add( 1110AssemblyList.GetStatements.Add(assemblyListNull); 1111AssemblyList.GetStatements.Add(new CodeMethodReturnStatement(assemblyList)); 1168getSchemaContextIfNotNull.TrueStatements.Add(assignSchemaContext); 1169getSchemaContextIfNotNull.TrueStatements.Add(xscReturnIfNotNull); 1170SchemaContext.GetStatements.Add(getSchemaContextIfNotNull); 1178initSchemaContext.TrueStatements.Add(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New(AssemblyList))); 1179initSchemaContext.FalseStatements.Add(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New())); 1180SchemaContext.GetStatements.Add(initSchemaContext); 1183SchemaContext.GetStatements.Add(assignSchemaContextField); 1185SchemaContext.GetStatements.Add(new CodeMethodReturnStatement(xsc)); 1242tryCatchExp.TryStatements.Add(new CodeAssignStatement(asm, 1260catchClause.Statements.Add(setPublicKeyTokenExp); 1261catchClause.Statements.Add(new CodeAssignStatement(asm, 1272loadMethod.Statements.Add(tryCatchExp); 1273loadMethod.Statements.Add(new CodeMethodReturnStatement(asm)); 1326loadAssembliesMethod.Statements.Add(new CodeMethodReturnStatement(assemblyList));
Microsoft\Build\Tasks\Xaml\CodeDomExtensionMethods.cs (1)
15block.Add(new CodeVariableDeclarationStatement()