144 references to Parameters
dotnet-svcutil-lib (144)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
212
writeXml.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlWriter)), "writer"));
243
readXml.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(Microsoft.Xml.XmlReader)), "reader"));
CodeDomFixup\CodeDomHelpers.cs (8)
68
foreach (CodeParameterDeclarationExpression parameter in method.
Parameters
)
72
m.
Parameters
.Add(newParam);
102
int paramCount = method.
Parameters
.Count;
105
MatchType<AsyncCallback>(method.
Parameters
[paramCount - 2].Type) &&
106
MatchType<object>(method.
Parameters
[paramCount - 1].Type) &&
112
int paramCount = method.
Parameters
.Count;
115
(MatchType<IAsyncResult>(method.
Parameters
[paramCount - 1].Type) ||
116
MatchType<IAsyncResult>(method.
Parameters
[0].Type));
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (1)
290
Enumerate(method.
Parameters
);
CodeDomFixup\CodeDomVisitors\ConstructorFixer.cs (1)
45
if (CodeDomHelpers.MatchSignatures(ctor.
Parameters
, validCtors[i]))
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (19)
113
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(string), "endpointConfiguration"));
123
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl"));
125
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(string), "endpointConfiguration"));
148
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(System.ServiceModel.Channels.Binding), "binding"));
150
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(System.ServiceModel.EndpointAddress), "remoteAddress"));
160
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl"));
162
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(System.ServiceModel.Channels.Binding), "binding"));
164
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(System.ServiceModel.EndpointAddress), "remoteAddress"));
195
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(callbackImpl.Name), "callbackImpl"));
248
operationCompletedMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(typeof(object)), "state"));
335
if (syncMethod.
Parameters
.Count <= 0)
352
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(object[]), "results"));
353
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(Exception), "exception"));
355
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(bool), "cancelled"));
357
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(object), "userState"));
368
for (int paramIndex = 0; paramIndex < syncMethod.
Parameters
.Count; paramIndex++)
370
CodeParameterDeclarationExpression param = syncMethod.
Parameters
[paramIndex];
425
m.
Parameters
.Add(
458
foreach (CodeParameterDeclarationExpression p in method.
Parameters
)
CodeDomFixup\ConfigToCode.cs (39)
121
if (ctor.
Parameters
.Count == 0)
129
else if (ctor.
Parameters
.Count == 1 && !string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
137
else if (ctor.
Parameters
.Count == 1 && string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
141
ctor.
Parameters
[0] = new CodeParameterDeclarationExpression(
153
else if (ctor.
Parameters
.Count == 2 && string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
157
ctor.
Parameters
[1] = new CodeParameterDeclarationExpression(
186
if (ctor.
Parameters
.Count == 0)
207
else if (ctor.
Parameters
.Count == 1 && string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
212
ctor.
Parameters
.Clear();
213
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(
236
else if (ctor.
Parameters
.Count == 2 && string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)
237
&& string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
242
ctor.
Parameters
[0] = new CodeParameterDeclarationExpression(
246
string remoteAddressParam = ctor.
Parameters
[1].Name;
265
else if (ctor.
Parameters
.Count == 2 && string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal) &&
266
string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(EndpointAddress).FullName, StringComparison.Ordinal))
271
ctor.
Parameters
[0] = new CodeParameterDeclarationExpression(
275
string remoteAddressParam = ctor.
Parameters
[1].Name;
314
if (ctor.
Parameters
.Count > 0 && string.Equals(ctor.
Parameters
[0].Type.BaseType, typeof(InstanceContext).FullName))
316
if (ctor.
Parameters
.Count == 1)
337
else if (ctor.
Parameters
.Count == 2 && string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
342
ctor.
Parameters
[1] = new CodeParameterDeclarationExpression(
366
else if (ctor.
Parameters
.Count == 3 && string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)
367
&& string.Equals(ctor.
Parameters
[2].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal))
373
string remoteAddressParam = ctor.
Parameters
[2].Name;
374
ctor.
Parameters
[1] = new CodeParameterDeclarationExpression(
394
else if (ctor.
Parameters
.Count == 3 && string.Equals(ctor.
Parameters
[1].Type.BaseType, typeof(string).FullName, StringComparison.Ordinal)
395
&& string.Equals(ctor.
Parameters
[2].Type.BaseType, typeof(EndpointAddress).FullName, StringComparison.Ordinal))
401
ctor.
Parameters
[1] = new CodeParameterDeclarationExpression(
CodeDomFixup\MethodCreationHelper.cs (2)
32
this.GetEndpointAddress.
Parameters
.Add(new CodeParameterDeclarationExpression(ConfigToCodeConstants.EndpointConfigurationEnumTypeName, ConfigToCodeConstants.EndpointConfigurationParameter));
41
this.GetBinding.
Parameters
.Add(new CodeParameterDeclarationExpression(ConfigToCodeConstants.EndpointConfigurationEnumTypeName, ConfigToCodeConstants.EndpointConfigurationParameter));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (2)
275
ValidateParameters(e.
Parameters
);
383
ValidateParameters(e.
Parameters
);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
2142
OutputParameters(e.
Parameters
);
2546
OutputParameters(e.
Parameters
);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
410
raisePropertyChangedEventMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(string), propertyName.ParameterName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (4)
1585
readXmlMethod.
Parameters
.Add(readerArg);
1607
writeXmlMethod.
Parameters
.Add(writerArg);
1644
getSchemaStaticMethod.
Parameters
.Add(paramDeclaration);
1706
raisePropertyChangedEventMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(string), propertyName.ParameterName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (48)
192
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(typeof(InstanceContext), s_inputInstanceName));
197
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(s_clientCtorParamTypes[i][j], s_clientCtorParamNames[i][j]));
269
foreach (CodeParameterDeclarationExpression param in method.
Parameters
)
282
helperMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(param.Type, param.Name));
329
CodeParameterDeclarationExpression param = GetRefParameter(helperMethod.
Parameters
, dir, field);
341
helperMethod.
Parameters
.Add(param);
447
CodeParameterDeclarationExpressionCollection parameters = method.
Parameters
;
459
foreach (CodeParameterDeclarationExpression parameter in method.
Parameters
)
475
foreach (CodeParameterDeclarationExpression parameter in method.
Parameters
)
479
m.
Parameters
.Add(newParam);
513
if ((endMethod.
Parameters
.Count == 1) && (endMethod.ReturnType.BaseType == s_voidTypeRef.BaseType))
534
ctor.
Parameters
.Add(new CodeParameterDeclarationExpression(s_eventArgsCtorParamTypes[i], s_eventArgsCtorParamNames[i]));
546
for (int i = 0; i < endMethod.
Parameters
.Count; i++)
551
endMethod.
Parameters
[i].Type,
552
endMethod.
Parameters
[i].Name,
585
int index = endMethod.
Parameters
.Count - 1;
586
if (endMethod.
Parameters
[index].Type.BaseType != s_asyncResultTypeRef.BaseType)
663
onBeginOperationMethod.
Parameters
.Add(inValuesParam);
668
for (int i = 0; i < beginMethod.
Parameters
.Count - 2; i++)
671
variableDecl.Type = beginMethod.
Parameters
[i].Type;
672
variableDecl.Name = beginMethod.
Parameters
[i].Name;
677
invokeBegin.Parameters.Add(new CodeDirectionExpression(beginMethod.
Parameters
[i].Direction,
681
for (int i = beginMethod.
Parameters
.Count - 2; i < beginMethod.
Parameters
.Count; i++)
683
onBeginOperationMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(
684
beginMethod.
Parameters
[i].Type, beginMethod.
Parameters
[i].Name));
685
invokeBegin.Parameters.Add(new CodeVariableReferenceExpression(beginMethod.
Parameters
[i].Name));
717
for (int i = 0; i < endMethod.
Parameters
.Count; i++)
721
onEndOperationMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(
722
endMethod.
Parameters
[i].Type, endMethod.
Parameters
[i].Name));
723
invokeEnd.Parameters.Add(new CodeVariableReferenceExpression(endMethod.
Parameters
[i].Name));
728
endMethod.
Parameters
[i].Type, endMethod.
Parameters
[i].Name);
729
CodeMethodReferenceExpression getDefaultValueMethodRef = new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), s_getDefaultValueForInitializationMethodName, endMethod.
Parameters
[i].Type);
733
invokeEnd.Parameters.Add(new CodeDirectionExpression(endMethod.
Parameters
[i].Direction,
789
operationCompletedMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), "state"));
796
new CodeArgumentReferenceExpression(operationCompletedMethod.
Parameters
[0].Name));
850
for (int i = 0; i < beginMethod.
Parameters
.Count - 2; i++)
852
CodeParameterDeclarationExpression beginMethodParameter = beginMethod.
Parameters
[i];
857
eventAsyncMethod.
Parameters
.Add(eventAsyncMethodParameter);
862
eventAsyncMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(new CodeTypeReference(s_objectType), userStateParamName));
898
for (int i = 0; i < eventAsyncMethod.
Parameters
.Count - 1; i++)
900
eventAsyncMethodOverload.
Parameters
.Add(new CodeParameterDeclarationExpression(
901
eventAsyncMethod.
Parameters
[i].Type,
902
eventAsyncMethod.
Parameters
[i].Name));
905
eventAsyncMethod.
Parameters
[i].Name));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (12)
209
methodParameters = new CodeParameterDeclarationExpressionCollection(_method.
Parameters
);
211
endMethodParameters = new CodeParameterDeclarationExpressionCollection(_endMethod.
Parameters
);
222
method.
Parameters
.Clear();
223
method.
Parameters
.AddRange(methodParameters);
227
endMethod.
Parameters
.Clear();
228
endMethod.
Parameters
.AddRange(endMethodParameters);
284
_method.
Parameters
.Insert(0, new CodeParameterDeclarationExpression(typedReqMessageRef, "request"));
380
_method.
Parameters
.Insert(0, new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference((typeof(Message))), "request"));
414
_ins = new ParametersPartCodeGenerator(this, beginMethod.Name, beginMethod.
Parameters
, beginMethod.CustomAttributes, FieldDirection.In);
415
_outs = new ParametersPartCodeGenerator(this, beginMethod.Name, endMethod.
Parameters
, beginMethod.CustomAttributes, FieldDirection.Out);
830
otherCtor.
Parameters
.Add(param);
833
if (otherCtor.
Parameters
.Count > 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (3)
289
beginMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName));
290
beginMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName));
296
endMethod.
Parameters
.Add(new CodeParameterDeclarationExpression(_context.ServiceContractGenerator.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName));