62 instantiations of CodeMethodInvokeExpression
dotnet-svcutil-lib (62)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (6)
216
new
CodeMethodInvokeExpression
(new CodeVariableReferenceExpression("nodesList"), "GetEnumerator"));
223
CodeMethodInvokeExpression codeWrite = new
CodeMethodInvokeExpression
(iXmlSerCast, "WriteXml", new CodeVariableReferenceExpression("writer"));
226
codeFor.TestExpression = new
CodeMethodInvokeExpression
(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression("e"), "MoveNext"));
266
CodeMethodInvokeExpression codeRead = new
CodeMethodInvokeExpression
(iXmlSerCast, "ReadXml", new CodeVariableReferenceExpression("reader"));
269
new
CodeMethodInvokeExpression
(
278
CodeMethodInvokeExpression skip = new
CodeMethodInvokeExpression
(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression("reader"), "Skip"));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (2)
53
new
CodeMethodInvokeExpression
(
75
return new
CodeMethodInvokeExpression
()
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (5)
129
new
CodeMethodInvokeExpression
()
168
new
CodeMethodInvokeExpression
()
199
new
CodeMethodInvokeExpression
()
379
property.GetStatements.Add(new
CodeMethodInvokeExpression
(new CodeBaseReferenceExpression(), "RaiseExceptionIfNecessary"));
465
new
CodeMethodInvokeExpression
()
CodeDomFixup\ConfigToCode.cs (15)
77
new
CodeMethodInvokeExpression
(
87
new
CodeMethodInvokeExpression
(
92
ctor.Statements.Add(new
CodeMethodInvokeExpression
(
192
new
CodeMethodInvokeExpression
(
196
new
CodeMethodInvokeExpression
(
219
new
CodeMethodInvokeExpression
(
224
new
CodeMethodInvokeExpression
(
249
new
CodeMethodInvokeExpression
(
278
new
CodeMethodInvokeExpression
(
322
new
CodeMethodInvokeExpression
(
326
new
CodeMethodInvokeExpression
(
349
new
CodeMethodInvokeExpression
(
354
new
CodeMethodInvokeExpression
(
378
new
CodeMethodInvokeExpression
(
405
new
CodeMethodInvokeExpression
(
CodeDomFixup\MethodCreationHelper.cs (19)
611
new
CodeMethodInvokeExpression
(new CodeTypeReferenceExpression(typeof(System.ServiceModel.Federation.WSTrustTokenParameters)), "CreateWSFederationTokenParameters",
620
new
CodeMethodInvokeExpression
(new CodeTypeReferenceExpression(typeof(System.ServiceModel.Federation.WSTrustTokenParameters)), "CreateWSFederationTokenParameters",
815
new
CodeMethodInvokeExpression
(new CodeTypeReferenceExpression(typeof(System.ServiceModel.Federation.WSTrustTokenParameters)), "CreateWS2007FederationTokenParameters",
824
new
CodeMethodInvokeExpression
(new CodeTypeReferenceExpression(typeof(System.ServiceModel.Federation.WSTrustTokenParameters)), "CreateWS2007FederationTokenParameters",
1097
new
CodeMethodInvokeExpression
(
1108
new
CodeMethodInvokeExpression
(
1123
new
CodeMethodInvokeExpression
(
1192
new
CodeMethodInvokeExpression
(
1287
new
CodeMethodInvokeExpression
(
1342
new
CodeMethodInvokeExpression
(
1414
new
CodeMethodInvokeExpression
(
1425
new
CodeMethodInvokeExpression
(
1467
new
CodeMethodInvokeExpression
(
1509
new
CodeMethodInvokeExpression
(
1609
new
CodeMethodInvokeExpression
(
2190
new
CodeMethodInvokeExpression
(
2200
new
CodeMethodInvokeExpression
(
2215
new
CodeMethodInvokeExpression
(
2225
new
CodeMethodInvokeExpression
(
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
370
prop.SetStatements.Add(new
CodeMethodInvokeExpression
(new CodeThisReferenceExpression(), RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(name)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (6)
1590
setNode.Right = new
CodeMethodInvokeExpression
(
1611
new
CodeMethodInvokeExpression
(
1647
new
CodeMethodInvokeExpression
(
1759
left = new
CodeMethodInvokeExpression
(new CodeTypeReferenceExpression(Globals.TypeOfObject),
1764
left = new
CodeMethodInvokeExpression
(left, "Equals", new CodeExpression[] { right });
1769
ifStatement.TrueStatements.Add(new
CodeMethodInvokeExpression
(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (8)
267
CodeMethodInvokeExpression invokeMethod = new
CodeMethodInvokeExpression
(new CodeMethodReferenceExpression(new CodeCastExpression(ifaceType, new CodeThisReferenceExpression()), method.Name));
458
CodeMethodInvokeExpression methodInvoke = new
CodeMethodInvokeExpression
(GetChannelReference(), method.Name);
608
property.GetStatements.Add(new
CodeMethodInvokeExpression
(new CodeBaseReferenceExpression(), s_raiseExceptionIfNecessaryMethodName));
665
CodeMethodInvokeExpression invokeBegin = new
CodeMethodInvokeExpression
(new CodeThisReferenceExpression(), beginMethod.Name);
714
CodeMethodInvokeExpression invokeEnd = new
CodeMethodInvokeExpression
(new CodeThisReferenceExpression(), endMethod.Name);
730
variableDecl.InitExpression = new
CodeMethodInvokeExpression
(getDefaultValueMethodRef);
868
CodeMethodInvokeExpression invokeAsync = new
CodeMethodInvokeExpression
(new CodeBaseReferenceExpression(), s_invokeAsyncMethodName);
895
CodeMethodInvokeExpression invokeEventAsyncMethod = new
CodeMethodInvokeExpression
(
27 references to CodeMethodInvokeExpression
dotnet-svcutil-lib (27)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (4)
223
CodeMethodInvokeExpression
codeWrite = new CodeMethodInvokeExpression(iXmlSerCast, "WriteXml", new CodeVariableReferenceExpression("writer"));
266
CodeMethodInvokeExpression
codeRead = new CodeMethodInvokeExpression(iXmlSerCast, "ReadXml", new CodeVariableReferenceExpression("reader"));
268
CodeMethodInvokeExpression
addNode =
278
CodeMethodInvokeExpression
skip = new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeVariableReferenceExpression("reader"), "Skip"));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
73
private
CodeMethodInvokeExpression
GenerateBeginMethodInvokeExpression(string methodName)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
310
protected override void Visit(
CodeMethodInvokeExpression
expr)
617
else if (expr is
CodeMethodInvokeExpression
)
618
Visit((
CodeMethodInvokeExpression
)expr);
660
protected virtual void Visit(
CodeMethodInvokeExpression
expr) { }
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
70
protected override void Visit(
CodeMethodInvokeExpression
methodInvoke)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (3)
760
else if (e is
CodeMethodInvokeExpression
)
762
GenerateMethodInvokeExpression((
CodeMethodInvokeExpression
)e);
1687
protected abstract void GenerateMethodInvokeExpression(
CodeMethodInvokeExpression
e);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (3)
773
else if (e is
CodeMethodInvokeExpression
)
775
ValidateMethodInvokeExpression((
CodeMethodInvokeExpression
)e);
924
private void ValidateMethodInvokeExpression(
CodeMethodInvokeExpression
e)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
1076
private void GenerateMethodInvokeExpression(
CodeMethodInvokeExpression
e)
1905
else if (e is
CodeMethodInvokeExpression
)
1907
GenerateMethodInvokeExpression((
CodeMethodInvokeExpression
)e);
FrameworkFork\Microsoft.CodeDom\System\CodeMethodInvokeExpression.cs (2)
31
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeMethodInvokeExpression
'/>.
40
/// Initializes a new instance of <see cref='Microsoft.CodeDom.
CodeMethodInvokeExpression
'/> using the specified target object, method name
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (6)
267
CodeMethodInvokeExpression
invokeMethod = new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeCastExpression(ifaceType, new CodeThisReferenceExpression()), method.Name));
458
CodeMethodInvokeExpression
methodInvoke = new CodeMethodInvokeExpression(GetChannelReference(), method.Name);
665
CodeMethodInvokeExpression
invokeBegin = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), beginMethod.Name);
714
CodeMethodInvokeExpression
invokeEnd = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), endMethod.Name);
868
CodeMethodInvokeExpression
invokeAsync = new CodeMethodInvokeExpression(new CodeBaseReferenceExpression(), s_invokeAsyncMethodName);
895
CodeMethodInvokeExpression
invokeEventAsyncMethod = new CodeMethodInvokeExpression(