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