108 references to Add
Microsoft.Build.Tasks.Core (10)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
237executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.SourceCode)); 238executeMethod.Statements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name))); 642property.GetStatements.Add(new CodeMethodReturnStatement(fieldReference)); 650property.SetStatements.Add(fieldAssign);
system.design\stronglytypedresourcebuilder.cs (6)
469resMgr.GetStatements.Add(new CodeConditionStatement(isResMgrNull, init)); 470resMgr.GetStatements.Add(new CodeMethodReturnStatement(field_resMgr)); 479culture.GetStatements.Add(new CodeMethodReturnStatement(field_resCulture)); 482culture.SetStatements.Add(new CodeAssignStatement(field_resCulture, newCulture)); 654prop.GetStatements.Add(returnObj); 658prop.GetStatements.Add(ret);
PresentationBuildTasks (46)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (46)
912_ccRoot.StyleConnectorFn.Statements.Add(css); 937_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 943_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 1015_ccRoot.StyleConnectorFn.Statements.Add(casES); 1016_ccRoot.StyleConnectorFn.Statements.Add(casEvent); 1017_ccRoot.StyleConnectorFn.Statements.Add(casHandler); 1018_ccRoot.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd)); 1022ccsConnector.TrueStatements.Add(casES); 1023ccsConnector.TrueStatements.Add(casEvent); 1024ccsConnector.TrueStatements.Add(casHandler); 1025ccsConnector.TrueStatements.Add(new CodeExpressionStatement(cmieAdd)); 1029_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1072_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1076ccsConnector.TrueStatements.Add( csAddCLREvent ); 1081_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1099_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 1106_ccRoot.StyleConnectorFn.Statements.Add(css); 1144_ccRoot.HookupFn.Statements.Add(css); 1173_ccRoot.HookupFn.Statements.Add(cssCase); 1200_ccRoot.HookupFn.Statements.Add(casName); 1204ccsConnector.TrueStatements.Add(casName); 1216_ccRoot.HookupFn.Statements.Add(csEvent); 1220ccsConnector.TrueStatements.Add(csEvent); 1229_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1233ccsConnector.TrueStatements.Add(new CodeMethodReturnStatement()); 1234_ccRoot.HookupFn.Statements.Add(ccsConnector); 1274_ccRoot.HookupFn.Statements.Add(css); 1282_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2070cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2581cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2608ccsCL.TrueStatements.Add(new CodeMethodReturnStatement()); 2611cmmLC.Statements.Add(ccsCL); 2624cmmLC.Statements.Add(casCL); 2681cmmLC.Statements.Add(cvdsresLocator); 2698cmmLC.Statements.Add(cesLC); 2783cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2812cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2841cmmSPV.Statements.Add(new CodeExpressionStatement(cmieSPV)); 2894cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD)); 2919cmmAEH.Statements.Add(new CodeExpressionStatement(cmieAEH)); 3125cmmMain.Statements.Add(cvds); 3145_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3158_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3213cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT)); 3225cmmMain.Statements.Add(csRun); 3282cmmMain.Statements.Add(cvdsAppSplash);
System.CodeDom (3)
System\CodeDom\CodeStatementCollection.cs (3)
30public int Add(CodeExpression value) => Add(new CodeExpressionStatement(value)); 41Add(value[i]); 55Add(value[i]);
System.Runtime.Serialization.Schema (19)
System\Runtime\Serialization\Schema\CodeExporter.cs (19)
1730readXmlMethod.Statements.Add(setNode); 1766getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1789getSchemaStaticMethod.Statements.Add( 1809baseConstructor.Statements.Add(setObjectData); 1813baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1870returnIfNull.TrueStatements.Add(new CodeMethodReturnStatement()); 1907loop.Statements.Add(getCurrent); 1908loop.Statements.Add(addValue); 1910getObjectDataMethod.Statements.Add(returnIfNull); 1911getObjectDataMethod.Statements.Add(getEnumerator); 1912getObjectDataMethod.Statements.Add(loop); 1942extensionDataObjectProperty.GetStatements.Add(propertyGet); 1947extensionDataObjectProperty.SetStatements.Add(propertySet); 1963raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1965raisePropertyChangedEventMethod.Statements.Add(ifStatement); 2002property.GetStatements.Add(propertyGet); 2023ifStatement.TrueStatements.Add(propertySet); 2025property.SetStatements.Add(ifStatement); 2028property.SetStatements.Add(propertySet);
System.Windows.Forms.Design (30)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
43completeStatements.Add(statement);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
186statements.Add(varDecl);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2818statements.Add(statement);
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (7)
56ContainerStatements.Add(statement); 60FieldAssignments.Add(fieldAssignment); 64VariableAssignments.Add(variableAssignment); 68LocalVariables.Add(statement); 75BeginStatements.Add(statement); 79EndStatements.Add(statement); 83Statements.Add(statement);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
205resultCollection.Add(resultStatement); 646statements.Add(new CodeExpressionStatement(methodInvoke));
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
242statements.Add(local); 296statements.Add(assign); 521statements.Add(statement); 548statements.Add(statement);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (2)
63statements.Add(var); 74statements.Add(assign);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
56statements.Add(attach);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
210statements.Add(cs); 351statements.Add(assign);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
299statements.Add(new CodeVariableDeclarationStatement(typeof(ComponentResourceManager), ResourceManagerName, initExpression));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
621resourceManagerProperty.GetStatements.Add(new CodeConditionStatement(isResourceManagerNull, assignNewResourceManager)); 622resourceManagerProperty.GetStatements.Add(new CodeMethodReturnStatement(resourceManagerField)); 631culture.GetStatements.Add(new CodeMethodReturnStatement(cultureInfoField)); 634culture.SetStatements.Add(new CodeAssignStatement(cultureInfoField, newCulture)); 801property.GetStatements.Add(returnObject); 805property.GetStatements.Add(returnStatement);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
388statements.Add(statement); 448statements.Add(statement);