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)
908_ccRoot.StyleConnectorFn.Statements.Add(css); 933_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 939_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 1011_ccRoot.StyleConnectorFn.Statements.Add(casES); 1012_ccRoot.StyleConnectorFn.Statements.Add(casEvent); 1013_ccRoot.StyleConnectorFn.Statements.Add(casHandler); 1014_ccRoot.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd)); 1018ccsConnector.TrueStatements.Add(casES); 1019ccsConnector.TrueStatements.Add(casEvent); 1020ccsConnector.TrueStatements.Add(casHandler); 1021ccsConnector.TrueStatements.Add(new CodeExpressionStatement(cmieAdd)); 1025_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1068_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1072ccsConnector.TrueStatements.Add( csAddCLREvent ); 1077_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1095_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 1102_ccRoot.StyleConnectorFn.Statements.Add(css); 1140_ccRoot.HookupFn.Statements.Add(css); 1169_ccRoot.HookupFn.Statements.Add(cssCase); 1196_ccRoot.HookupFn.Statements.Add(casName); 1200ccsConnector.TrueStatements.Add(casName); 1212_ccRoot.HookupFn.Statements.Add(csEvent); 1216ccsConnector.TrueStatements.Add(csEvent); 1225_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1229ccsConnector.TrueStatements.Add(new CodeMethodReturnStatement()); 1230_ccRoot.HookupFn.Statements.Add(ccsConnector); 1270_ccRoot.HookupFn.Statements.Add(css); 1278_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2066cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2577cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2604ccsCL.TrueStatements.Add(new CodeMethodReturnStatement()); 2607cmmLC.Statements.Add(ccsCL); 2620cmmLC.Statements.Add(casCL); 2677cmmLC.Statements.Add(cvdsresLocator); 2694cmmLC.Statements.Add(cesLC); 2779cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2808cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2837cmmSPV.Statements.Add(new CodeExpressionStatement(cmieSPV)); 2890cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD)); 2915cmmAEH.Statements.Add(new CodeExpressionStatement(cmieAEH)); 3121cmmMain.Statements.Add(cvds); 3141_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3154_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3209cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT)); 3221cmmMain.Statements.Add(csRun); 3278cmmMain.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);