51 references to Add
dotnet-svcutil-lib (51)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (16)
112
ctor.ChainedConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name)));
114
ctor.ChainedConstructorArgs.
Add
(new CodeVariableReferenceExpression("endpointConfiguration"));
124
ctor.BaseConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl")));
126
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("endpointConfiguration"));
147
ctor.ChainedConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name)));
149
ctor.ChainedConstructorArgs.
Add
(new CodeVariableReferenceExpression("binding"));
151
ctor.ChainedConstructorArgs.
Add
(new CodeVariableReferenceExpression("remoteAddress"));
161
ctor.BaseConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl")));
163
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("binding"));
165
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("remoteAddress"));
186
ctor.ChainedConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(callbackImpl.Name)));
196
ctor.BaseConstructorArgs.
Add
(new CodeObjectCreateExpression(new CodeTypeReference(typeof(System.ServiceModel.InstanceContext)), new CodeArgumentReferenceExpression("callbackImpl"))); ;
354
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("exception"));
356
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("cancelled"));
358
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression("userState"));
460
arr.Initializers.
Add
(new CodeVariableReferenceExpression(p.Name));
CodeDomFixup\ConfigToCode.cs (12)
191
ctor.BaseConstructorArgs.
Add
(
195
ctor.BaseConstructorArgs.
Add
(
218
ctor.BaseConstructorArgs.
Add
(
223
ctor.BaseConstructorArgs.
Add
(
248
ctor.BaseConstructorArgs.
Add
(
253
ctor.BaseConstructorArgs.
Add
(
277
ctor.BaseConstructorArgs.
Add
(
282
ctor.BaseConstructorArgs.
Add
(
321
ctor.BaseConstructorArgs.
Add
(
325
ctor.BaseConstructorArgs.
Add
(
348
ctor.BaseConstructorArgs.
Add
(
353
ctor.BaseConstructorArgs.
Add
(
FrameworkFork\Microsoft.CodeDom\System\CodeExpressionCollection.cs (2)
88
this.
Add
(value[i]);
106
this.
Add
(value[i]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (21)
193
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression(s_inputInstanceName));
198
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression(s_clientCtorParamNames[i][j]));
277
invokeMethod.Parameters.
Add
(inValue);
283
invokeMethod.Parameters.
Add
(new CodeArgumentReferenceExpression(param.Name));
461
methodInvoke.Parameters.
Add
(new CodeDirectionExpression(parameter.Direction, new CodeVariableReferenceExpression(parameter.Name)));
537
ctor.BaseConstructorArgs.
Add
(new CodeVariableReferenceExpression(s_eventArgsCtorParamNames[i]));
677
invokeBegin.Parameters.
Add
(new CodeDirectionExpression(beginMethod.Parameters[i].Direction,
685
invokeBegin.Parameters.
Add
(new CodeVariableReferenceExpression(beginMethod.Parameters[i].Name));
723
invokeEnd.Parameters.
Add
(new CodeVariableReferenceExpression(endMethod.Parameters[i].Name));
733
invokeEnd.Parameters.
Add
(new CodeDirectionExpression(endMethod.Parameters[i].Direction,
736
retArray.Initializers.
Add
(new CodeVariableReferenceExpression(variableDecl.Name));
746
retArray.Initializers.
Add
(new CodeVariableReferenceExpression(retValDecl.Name));
858
invokeAsyncInValues.Initializers.
Add
(new CodeVariableReferenceExpression(eventAsyncMethodParameter.Name));
869
invokeAsync.Parameters.
Add
(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), beginOperationDelegate.Name));
872
invokeAsync.Parameters.
Add
(invokeAsyncInValues);
876
invokeAsync.Parameters.
Add
(new CodePrimitiveExpression(null));
878
invokeAsync.Parameters.
Add
(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), endOperationDelegate.Name));
879
invokeAsync.Parameters.
Add
(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), operationCompletedDelegate.Name));
880
invokeAsync.Parameters.
Add
(new CodeVariableReferenceExpression(userStateParamName));
904
invokeEventAsyncMethod.Parameters.
Add
(new CodeVariableReferenceExpression(
907
invokeEventAsyncMethod.Parameters.
Add
(new CodePrimitiveExpression(null));