53 instantiations of CodeParameterDeclarationExpression
dotnet-svcutil-lib (53)
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 (1)
70
CodeParameterDeclarationExpression newParam = new
CodeParameterDeclarationExpression
(parameter.Type, parameter.Name);
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (15)
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"));
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"));
426
new
CodeParameterDeclarationExpression
()
CodeDomFixup\ConfigToCode.cs (8)
141
ctor.Parameters[0] = new
CodeParameterDeclarationExpression
(
157
ctor.Parameters[1] = new
CodeParameterDeclarationExpression
(
213
ctor.Parameters.Add(new
CodeParameterDeclarationExpression
(
242
ctor.Parameters[0] = new
CodeParameterDeclarationExpression
(
271
ctor.Parameters[0] = new
CodeParameterDeclarationExpression
(
342
ctor.Parameters[1] = new
CodeParameterDeclarationExpression
(
374
ctor.Parameters[1] = new
CodeParameterDeclarationExpression
(
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.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)
1584
CodeParameterDeclarationExpression readerArg = new
CodeParameterDeclarationExpression
(typeof(XmlReader), "reader");
1606
CodeParameterDeclarationExpression writerArg = new
CodeParameterDeclarationExpression
(typeof(XmlWriter), "writer");
1643
CodeParameterDeclarationExpression paramDeclaration = new
CodeParameterDeclarationExpression
(Globals.TypeOfXmlSchemaSet, "schemas");
1706
raisePropertyChangedEventMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(typeof(string), propertyName.ParameterName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (13)
192
ctor.Parameters.Add(new
CodeParameterDeclarationExpression
(typeof(InstanceContext), s_inputInstanceName));
197
ctor.Parameters.Add(new
CodeParameterDeclarationExpression
(s_clientCtorParamTypes[i][j], s_clientCtorParamNames[i][j]));
282
helperMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(param.Type, param.Name));
339
param = new
CodeParameterDeclarationExpression
(field.Type, NamingHelper.GetUniqueName(field.Name, DoesParameterNameExist, helperMethod));
477
CodeParameterDeclarationExpression newParam = new
CodeParameterDeclarationExpression
(parameter.Type, parameter.Name);
534
ctor.Parameters.Add(new
CodeParameterDeclarationExpression
(s_eventArgsCtorParamTypes[i], s_eventArgsCtorParamNames[i]));
660
CodeParameterDeclarationExpression inValuesParam = new
CodeParameterDeclarationExpression
();
683
onBeginOperationMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(
721
onEndOperationMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(
789
operationCompletedMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(new CodeTypeReference(s_objectType), "state"));
853
CodeParameterDeclarationExpression eventAsyncMethodParameter = new
CodeParameterDeclarationExpression
(
862
eventAsyncMethod.Parameters.Add(new
CodeParameterDeclarationExpression
(new CodeTypeReference(s_objectType), userStateParamName));
900
eventAsyncMethodOverload.Parameters.Add(new
CodeParameterDeclarationExpression
(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
284
_method.Parameters.Insert(0, new
CodeParameterDeclarationExpression
(typedReqMessageRef, "request"));
380
_method.Parameters.Insert(0, new
CodeParameterDeclarationExpression
(_context.ServiceContractGenerator.GetCodeTypeReference((typeof(Message))), "request"));
437
CodeParameterDeclarationExpression paramDecl = new
CodeParameterDeclarationExpression
();
829
CodeParameterDeclarationExpression param = new
CodeParameterDeclarationExpression
(field.Type, field.Name);
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));
64 references to CodeParameterDeclarationExpression
dotnet-svcutil-lib (64)
CodeDomFixup\CodeDomHelpers.cs (2)
68
foreach (
CodeParameterDeclarationExpression
parameter in method.Parameters)
70
CodeParameterDeclarationExpression
newParam = new CodeParameterDeclarationExpression(parameter.Type, parameter.Name);
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
367
protected override void Visit(
CodeParameterDeclarationExpression
expr)
624
else if (expr is
CodeParameterDeclarationExpression
)
625
Visit((
CodeParameterDeclarationExpression
)expr);
664
protected virtual void Visit(
CodeParameterDeclarationExpression
expr) { }
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
370
CodeParameterDeclarationExpression
param = syncMethod.Parameters[paramIndex];
458
foreach (
CodeParameterDeclarationExpression
p in method.Parameters)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (5)
780
else if (e is
CodeParameterDeclarationExpression
)
782
GenerateParameterDeclarationExpression((
CodeParameterDeclarationExpression
)e);
1544
CodeParameterDeclarationExpression
current = (
CodeParameterDeclarationExpression
)en.Current;
1720
protected virtual void GenerateParameterDeclarationExpression(
CodeParameterDeclarationExpression
e)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (5)
643
CodeParameterDeclarationExpression
current = (
CodeParameterDeclarationExpression
)en.Current;
793
else if (e is
CodeParameterDeclarationExpression
)
795
ValidateParameterDeclarationExpression((
CodeParameterDeclarationExpression
)e);
964
private void ValidateParameterDeclarationExpression(
CodeParameterDeclarationExpression
e)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (5)
1925
else if (e is
CodeParameterDeclarationExpression
)
1927
GenerateParameterDeclarationExpression((
CodeParameterDeclarationExpression
)e);
2028
private void GenerateParameterDeclarationExpression(
CodeParameterDeclarationExpression
e)
3052
CodeParameterDeclarationExpression
current = (
CodeParameterDeclarationExpression
)en.Current;
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpression.cs (2)
33
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/>.
42
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> using the specified type and name.
FrameworkFork\Microsoft.CodeDom\System\CodeParameterDeclarationExpressionCollection.cs (18)
14
/// A collection that stores <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> objects.
45
/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeParameterDeclarationExpressionCollection'/> containing any array of <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> objects.
48
public CodeParameterDeclarationExpressionCollection(
CodeParameterDeclarationExpression
[] value)
54
/// <para>Represents the entry at the specified index of the <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/>.</para>
56
public
CodeParameterDeclarationExpression
this[int index]
60
return ((
CodeParameterDeclarationExpression
)(List[index]));
69
/// <para>Adds a <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> with the specified value to the
72
public int Add(
CodeParameterDeclarationExpression
value)
80
public void AddRange(
CodeParameterDeclarationExpression
[] value)
112
/// <see cref='Microsoft.CodeDom.CodeParameterDeclarationExpressionCollection'/> contains the specified <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/>.</para>
114
public bool Contains(
CodeParameterDeclarationExpression
value)
123
public void CopyTo(
CodeParameterDeclarationExpression
[] array, int index)
129
/// <para>Returns the index of a <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> in
132
public int IndexOf(
CodeParameterDeclarationExpression
value)
138
/// <para>Inserts a <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> into the <see cref='Microsoft.CodeDom.CodeParameterDeclarationExpressionCollection'/> at the specified index.</para>
140
public void Insert(int index,
CodeParameterDeclarationExpression
value)
146
/// <para> Removes a specific <see cref='Microsoft.CodeDom.
CodeParameterDeclarationExpression
'/> from the
149
public void Remove(
CodeParameterDeclarationExpression
value)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (3)
1584
CodeParameterDeclarationExpression
readerArg = new CodeParameterDeclarationExpression(typeof(XmlReader), "reader");
1606
CodeParameterDeclarationExpression
writerArg = new CodeParameterDeclarationExpression(typeof(XmlWriter), "writer");
1643
CodeParameterDeclarationExpression
paramDeclaration = new CodeParameterDeclarationExpression(Globals.TypeOfXmlSchemaSet, "schemas");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (11)
269
foreach (
CodeParameterDeclarationExpression
param in method.Parameters)
329
CodeParameterDeclarationExpression
param = GetRefParameter(helperMethod.Parameters, dir, field);
352
private static
CodeParameterDeclarationExpression
GetRefParameter(CodeParameterDeclarationExpressionCollection parameters, FieldDirection dir, CodeMemberField field)
354
foreach (
CodeParameterDeclarationExpression
p in parameters)
448
foreach (
CodeParameterDeclarationExpression
p in parameters)
459
foreach (
CodeParameterDeclarationExpression
parameter in method.Parameters)
475
foreach (
CodeParameterDeclarationExpression
parameter in method.Parameters)
477
CodeParameterDeclarationExpression
newParam = new CodeParameterDeclarationExpression(parameter.Type, parameter.Name);
660
CodeParameterDeclarationExpression
inValuesParam = new CodeParameterDeclarationExpression();
852
CodeParameterDeclarationExpression
beginMethodParameter = beginMethod.Parameters[i];
853
CodeParameterDeclarationExpression
eventAsyncMethodParameter = new CodeParameterDeclarationExpression(
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (7)
419
internal
CodeParameterDeclarationExpression
GetOrCreateParameter(CodeTypeReference type, string name, FieldDirection direction, ref int index, out bool createdNew)
424
CodeParameterDeclarationExpression
existing = existingParams.GetParameter(name, ref i);
437
CodeParameterDeclarationExpression
paramDecl = new CodeParameterDeclarationExpression();
496
CodeParameterDeclarationExpression
paramDecl = _parent.GetOrCreateParameter(type, name, _direction, ref _index, out createdNew);
510
internal
CodeParameterDeclarationExpression
GetParameter(string name, ref int index)
514
CodeParameterDeclarationExpression
parameter = _parameters[i];
829
CodeParameterDeclarationExpression
param = new CodeParameterDeclarationExpression(field.Type, field.Name);