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