206 references to Add
dotnet-svcutil-lib (206)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (7)
182
nodesProperty.GetStatements.
Add
(new CodeMethodReturnStatement(
201
getSchemaMethod.Statements.
Add
(throwException);
218
writeXml.Statements.
Add
(enumeratorDec);
231
writeXml.Statements.
Add
(codeFor);
274
codeIfElse.TrueStatements.
Add
(element);
281
codeFor.Statements.
Add
(codeIfElse);
283
readXml.Statements.
Add
(codeFor);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
51
implMethod.Statements.
Add
(
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (5)
307
operationCompletedMethod.Statements.
Add
(ifEventHandlerNotNullBlock);
364
ctor.Statements.
Add
(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression("results")));
384
property.GetStatements.
Add
(returnStmt);
434
m.Statements.
Add
(
485
m.Statements.
Add
(new CodeMethodReturnStatement(
CodeDomFixup\ConfigToCode.cs (2)
73
ctor.Statements.
Add
(new CodeAssignStatement(
83
ctor.Statements.
Add
(new CodeAssignStatement(
CodeDomFixup\MethodCreationHelper.cs (149)
144
this.GetBinding.Statements.
Add
(condition);
266
statements.
Add
(
275
statements.
Add
(
286
statements.
Add
(
295
statements.
Add
(
307
statements.
Add
(
319
statements.
Add
(
325
statements.
Add
(
331
statements.
Add
(
342
statements.
Add
(
354
statements.
Add
(
368
statements.
Add
(
382
statements.
Add
(
394
statements.
Add
(new CodeMethodReturnStatement(resultVar));
407
statements.
Add
(
416
statements.
Add
(
427
statements.
Add
(
436
statements.
Add
(
448
statements.
Add
(
460
statements.
Add
(
466
statements.
Add
(
472
statements.
Add
(
483
statements.
Add
(
495
statements.
Add
(
509
statements.
Add
(
523
statements.
Add
(
535
statements.
Add
(new CodeMethodReturnStatement(resultVar));
579
statements.
Add
(
586
statements.
Add
(
595
statements.
Add
(
607
statements.
Add
(
616
statements.
Add
(
624
statements.
Add
(
633
statements.
Add
(
642
statements.
Add
(
654
statements.
Add
(
666
statements.
Add
(
672
statements.
Add
(
678
statements.
Add
(
689
statements.
Add
(
701
statements.
Add
(
713
statements.
Add
(
725
statements.
Add
(
739
statements.
Add
(new CodeMethodReturnStatement(resultVar));
783
statements.
Add
(
790
statements.
Add
(
799
statements.
Add
(
811
statements.
Add
(
820
statements.
Add
(
828
statements.
Add
(
837
statements.
Add
(
846
statements.
Add
(
858
statements.
Add
(
870
statements.
Add
(
876
statements.
Add
(
882
statements.
Add
(
893
statements.
Add
(
905
statements.
Add
(
917
statements.
Add
(
929
statements.
Add
(
943
statements.
Add
(new CodeMethodReturnStatement(resultVar));
955
statements.
Add
(
964
statements.
Add
(
1090
statements.
Add
(new CodeMethodReturnStatement(resultVar));
1126
statements.
Add
(userNameOverTransportSecurityBindingElement);
1131
statements.
Add
(
1141
statements.
Add
(
1151
statements.
Add
(
1161
statements.
Add
(
1171
statements.
Add
(
1182
statements.
Add
(
1207
statements.
Add
(tcpBindingElement);
1210
statements.
Add
(
1219
statements.
Add
(
1229
statements.
Add
(
1238
statements.
Add
(
1248
statements.
Add
(
1258
statements.
Add
(
1268
statements.
Add
(
1278
statements.
Add
(
1302
statements.
Add
(namedPipeBindingElement);
1305
statements.
Add
(
1314
statements.
Add
(
1324
statements.
Add
(
1333
statements.
Add
(
1365
statements.
Add
(httpBindingElement);
1369
statements.
Add
(new CodeAssignStatement(
1375
statements.
Add
(
1382
statements.
Add
(
1391
statements.
Add
(
1403
statements.
Add
(
1440
statements.
Add
(mtomBindingElement);
1444
statements.
Add
(
1456
statements.
Add
(
1482
statements.
Add
(textBindingElement);
1486
statements.
Add
(
1498
statements.
Add
(
1524
statements.
Add
(reliableBindingElement);
1528
statements.
Add
(
1538
statements.
Add
(
1548
statements.
Add
(
1558
statements.
Add
(
1568
statements.
Add
(
1578
statements.
Add
(
1588
statements.
Add
(
1598
statements.
Add
(
1688
statements.
Add
(
1697
statements.
Add
(
1709
statements.
Add
(
1721
statements.
Add
(
1733
statements.
Add
(
1743
statements.
Add
(
1757
statements.
Add
(
1771
statements.
Add
(
1785
statements.
Add
(new CodeMethodReturnStatement(resultVar));
1795
statements.
Add
(
1829
statements.
Add
(
1841
statements.
Add
(
1855
statements.
Add
(
1868
statements.
Add
(new CodeMethodReturnStatement(resultVar));
1880
statements.
Add
(
1889
statements.
Add
(
1901
statements.
Add
(
1912
statements.
Add
(
1921
statements.
Add
(
1933
statements.
Add
(
1945
statements.
Add
(
1959
statements.
Add
(
1973
statements.
Add
(new CodeMethodReturnStatement(resultVar));
1987
statements.
Add
(
1996
statements.
Add
(
2007
statements.
Add
(
2016
statements.
Add
(
2028
statements.
Add
(
2040
statements.
Add
(
2052
statements.
Add
(
2062
statements.
Add
(
2076
statements.
Add
(
2090
statements.
Add
(new CodeMethodReturnStatement(resultVar));
2096
statements.
Add
(
2103
statements.
Add
(
2110
statements.
Add
(
2120
statements.
Add
(
2127
statements.
Add
(
2160
this.GetEndpointAddress.Statements.
Add
(
2188
this.GetDefaultBinding.Statements.
Add
(
2198
this.GetDefaultEndpointAddress.Statements.
Add
(
2211
this.GetBinding.Statements.
Add
(
2221
this.GetEndpointAddress.Statements.
Add
(
FrameworkFork\Microsoft.CodeDom\System\CodeStatementCollection.cs (3)
82
return
Add
(new CodeExpressionStatement(value));
97
this.
Add
(value[i]);
115
this.
Add
(value[i]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (5)
359
prop.GetStatements.
Add
(ret);
369
prop.SetStatements.
Add
(propertySet);
373
prop.SetStatements.
Add
(propertySet);
412
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name)));
414
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
549
ctor.Statements.
Add
(assign);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (11)
1595
readXmlMethod.Statements.
Add
(setNode);
1631
getSchemaMethod.Statements.
Add
(new CodeMethodReturnStatement(NullReference));
1654
getSchemaStaticMethod.Statements.
Add
(
1687
extensionDataObjectProperty.GetStatements.
Add
(propertyGet);
1692
extensionDataObjectProperty.SetStatements.
Add
(propertySet);
1708
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
1710
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
1747
property.GetStatements.
Add
(propertyGet);
1768
ifStatement.TrueStatements.
Add
(propertySet);
1770
property.SetStatements.
Add
(ifStatement);
1773
property.SetStatements.
Add
(propertySet);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (21)
276
helperMethod.Statements.
Add
(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type)));
296
helperMethod.Statements.
Add
(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod));
299
helperMethod.Statements.
Add
(returnStatement);
303
helperMethod.Statements.
Add
(new CodeMethodReturnStatement(invokeMethod));
325
helperMethod.Statements.
Add
(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type)));
344
helperMethod.Statements.
Add
(new CodeAssignStatement(new CodeArgumentReferenceExpression(param.Name), fieldRef));
346
helperMethod.Statements.
Add
(new CodeAssignStatement(fieldRef, new CodeArgumentReferenceExpression(param.Name)));
466
method.Statements.
Add
(new CodeMethodReturnStatement(methodInvoke));
541
ctor.Statements.
Add
(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(s_eventArgsCtorParamNames[0])));
609
property.GetStatements.
Add
(returnStmt);
676
onBeginOperationMethod.Statements.
Add
(variableDecl);
688
onBeginOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(invokeBegin));
731
onEndOperationMethod.Statements.
Add
(variableDecl);
748
onEndOperationMethod.Statements.
Add
(retValDecl);
757
onEndOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(retArray));
761
onEndOperationMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
831
operationCompletedMethod.Statements.
Add
(ifEventHandlerNotNullBlock);
864
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(beginOperationDelegate, beginOperationMethod));
865
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(endOperationDelegate, endOperationMethod));
866
eventAsyncMethod.Statements.
Add
(CreateDelegateIfNotNull(operationCompletedDelegate, operationCompletedMethod));
882
eventAsyncMethod.Statements.
Add
(new CodeExpressionStatement(invokeAsync));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
831
otherCtor.Statements.
Add
(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name)));