105 references to Add
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
3212cmmMain.Statements.Add(cmieShowSplashScreen);
System.Activities (14)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (14)
512accessorProperty.SetStatements.Add(new CodeMethodInvokeExpression( 870statementCollection.Add(invokeValidateExpression); 1256compiledDataContextStatements.Add(expressionInvoke); 1556wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1605wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1617wrapperMethod.Statements.Add(setExpression); 1619wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1649wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1659wrapperMethod.Statements.Add(setExpression); 1661wrapperMethod.Statements.Add(new CodeMethodInvokeExpression( 1699fetchMethod.Statements.Add(new CodeMethodInvokeExpression( 1731pushMethod.Statements.Add(setValue); 1734pushMethod.Statements.Add(new CodeMethodInvokeExpression( 1869setLocationsOffsetMethod.Statements.Add(baseSetLocationsOffsetMethod);
System.Data (27)
fx\src\data\System\Data\CodeGen\datacache.cs (27)
300onRowEvent.Statements.Add(MethodCall(Base(), "OnRow" + eventName, Argument("e"))); 339constructor.Statements.Add(MethodCall(This(), "InitClass")); 350constructor.Statements.Add(MethodCall(This(), "InitVars")); 424addMethod.Statements.Add(MethodCall(Property(This(), "Rows"), "Add", Argument("row"))); 488addByColName.Statements.Add(MethodCall(Property(This(), "Rows"), "Add", varRow)); 549clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {})); 591tableInitClass.Statements.Add(MethodCall(Property(This(), "Columns"), "Add", Field(This(), ColumnName))); 606tableInitClass.Statements.Add(MethodCall(Property(This(), "Constraints"), "Add", 738removeMethod.Statements.Add(MethodCall(Property(This(), "Rows"), "Remove", Argument("row"))); 945anotherProp.SetStatements.Add(MethodCall(This(), "SetParentRow", new CodeExpression[] {Value(), Indexer(Property(Property(This(), "Table"), "ParentRelations"), Str(relation.RelationName))})); 1032constructor.Statements.Add(MethodCall(This(), "BeginInit")); 1033constructor.Statements.Add(MethodCall(This(), "InitClass")); 1038constructor.Statements.Add(MethodCall(This(), "EndInit")); 1097constructor.Statements.Add(MethodCall(This(), "GetSerializationData", new CodeExpression [] { Argument("info"), Argument("context") })); 1112clone.Statements.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {})); 1119initDataSetVarsMethod.Statements.Add(MethodCall(This(), "InitVars", new CodeExpression [] {Primitive(true)})); 1148initClassMethod.Statements.Add(MethodCall(Property(This(), "Tables"), "Add", fieldTable)); 1207getTypedDataSetSchema.Statements.Add(MethodCall(Argument("xs"), "Add", new CodeExpression [] { MethodCall(Variable("ds"), "GetSchemaSerializable", new CodeExpression[] {})})); 1212getTypedDataSetSchema.Statements.Add(MethodCall(Property(Variable("sequence"),"Items"), "Add", new CodeExpression [] { Variable("any") })); 1223readXmlSerializable.Statements.Add(MethodCall(This(), "Reset", new CodeExpression [] {})); 1225readXmlSerializable.Statements.Add(MethodCall(Variable("ds"), "ReadXml", new CodeExpression [] { Argument("reader") })); 1241readXmlSerializable.Statements.Add(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")})); 1242readXmlSerializable.Statements.Add(MethodCall(This(),"InitVars")); 1255getSchemaSerializable.Statements.Add(MethodCall(This(), "WriteXmlSchema", New(typeof(System.Xml.XmlTextWriter),new CodeExpression[] {Argument("stream"),Primitive(null)}))); 1300initClassMethod.Statements.Add(MethodCall( 1347initClassMethod.Statements.Add(MethodCall(Property(This(), "Relations"), "Add", Field(This(), RelationFieldName(relation)))); 1406initClassMethod.Statements.Add(MethodCall(This(), "InitExpressions"));
System.Data.Entity.Design (9)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
556viewMethod.Statements.Add(appendExpression);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (4)
224emptyCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 243connectionStringCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 262connectionWorkspaceCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 446codeMethod.Statements.Add(
System\Data\EntityModel\Emitters\PropertyEmitter.cs (4)
306statements.Add( 312statements.Add( 368statements.Add( 375statements.Add(
System.Data.Services.Design (4)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
223connectionWorkspaceCtor.Statements.Add(OnContextCreatedCodeMethodInvokeExpression()); 610codeMethod.Statements.Add(
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
337statements.Add( 377statements.Add(
System.Management (2)
WmiGenerator.cs (2)
6393cmm.Statements.Add(cmie1); 7801cmMethod.Statements.Add(cmieInit);
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (4)
1693writeXmlMethod.Statements.Add( 1729getSchemaStaticMethod.Statements.Add( 1914ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, ThisReference, new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName))); 1972ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
System.ServiceModel (5)
System\ServiceModel\Description\ClientClassGenerator.cs (5)
287helperMethod.Statements.Add(invokeMethod); 464method.Statements.Add(methodInvoke); 609property.GetStatements.Add(new CodeMethodInvokeExpression(new CodeBaseReferenceExpression(), raiseExceptionIfNecessaryMethodName)); 753onEndOperationMethod.Statements.Add(invokeEnd); 910eventAsyncMethodOverload.Statements.Add(invokeEventAsyncMethod);
System.Web (18)
Compilation\BaseCodeDomTreeGenerator.cs (1)
373_ctor.Statements.Add(CreateInitInvoke());
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
327statements.Add(applyStyleSheetExpr); 785currentStmts.Add(invokeClearExpr);
Compilation\PageCodeDomTreeGenerator.cs (5)
389method.Statements.Add(addDeps); 404method.Statements.Add(call); 493method.Statements.Add(call); 551method.Statements.Add(call); 602method.Statements.Add(invokeExpr);
Compilation\ProfileBuildProvider.cs (1)
221prop.SetStatements.Add(setLine);
Compilation\TemplateControlCodeDomTreeGenerator.cs (1)
320ctorCode.Statements.Add(CreateInitInvoke());
Configuration\BrowserCapabilitiesCodeGenerator.cs (8)
906method.Statements.Add(baseInvoke); 969method.Statements.Add(baseInvoke); 1012cmm.Statements.Add(cmie); 1095cmm.Statements.Add(expr); 1312cmm.Statements.Add(cme); 1362cmm.Statements.Add(cmie); 1388cmm.Statements.Add(cmie); 1489cmm.Statements.Add(xProcess);
System.Web.Services (5)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
261asyncCodeMethod.Statements.Add(invoke);
System\Web\Services\Description\ProtocolImporter.cs (1)
444asyncCancelMethod.Statements.Add(invoke);
System\Web\Services\Description\SoapProtocolImporter.cs (1)
937asyncCodeMethod.Statements.Add(invoke);
System\Web\Services\Description\WebCodeGenerator.cs (2)
327asyncCodeMethod.Statements.Add(invoke); 408prop.GetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "RaiseExceptionIfNecessary", new CodeExpression[0]));
System.Workflow.Activities (1)
WebServiceReceive.cs (1)
871webMethod.Statements.Add(baseInvokeExpression);
System.Workflow.ComponentModel (4)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (1)
47ctor.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), _initMethodName));
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
122retVal.Add(codeMethodInvokeExpr); 209retVal.Add(new CodeMethodInvokeExpression(objectExpression, "SetValue", new CodeExpression[] { param1, param2 }));
AuthoringOM\Serializer\SynchronizationHandlesCodeDomSerializer.cs (1)
41statements.Add(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(variableName), "Add"), new CodeExpression[] { new CodePrimitiveExpression(handle) }));
System.Xml (2)
System\Xml\Serialization\CodeExporter.cs (2)
318prop.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(name))); 361ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, new CodeThisReferenceExpression(), new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
XamlBuildTask (9)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (9)
433initializeMethod.Statements.Add(new CodeMethodInvokeExpression( 521initializeMethod.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "AfterInitializeComponent")); 600tryStatements.Add( 640xmlReaderNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastXmlReader, "Dispose")); 647xamlReaderNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastXamlReader, "Dispose")); 654objWriterNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastObjWriter, "Dispose")); 1257setPublicKeyTokenExp.TrueStatements.Add( 1302loadAssembliesMethod.Statements.Add( 1315loadAssembliesMethod.Statements.Add(