56 instantiations of CodeMethodInvokeExpression
Microsoft.Build.Tasks.Core (16)
system.design\stronglytypedresourcebuilder.cs (2)
457var isResMgrNull = new CodeMethodInvokeExpression(object_equalsMethod, field_resMgr, new CodePrimitiveExpression(null)); 645var getValue = new CodeMethodInvokeExpression(resMgr, getMethodName, new CodePrimitiveExpression(resourceName), resCultureField);
XamlTaskFactory\TaskGenerator.cs (14)
441new CodeMethodInvokeExpression( 488var isPropertySet = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new CodeSnippetExpression(SurroundWithQuotes(fallbackParameter.Value))); 489var propertyNotSet = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new CodeSnippetExpression(SurroundWithQuotes(fallbackParameter.Key))), CodeBinaryOperatorType.ValueEquality, new CodeSnippetExpression(IsOff)); 648Condition = new CodeMethodInvokeExpression( 694CodeMethodInvokeExpression setParent = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), ParentProperty), AddLastMethod, new CodeSnippetExpression(SurroundWithQuotes(parentName))); 730propertyName.SetStatements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), ReplaceToolSwitchMethod, new CodeSnippetExpression(SwitchToAdd))); 786new CodeConditionStatement { Condition = new CodeMethodInvokeExpression(validateInt, parameters) }; 863var indexDecl = new CodeVariableDeclarationStatement(typeof(int), "i", new CodeMethodInvokeExpression( 1013propertyName.SetStatements.Add(new CodeMethodInvokeExpression( 1030propertyName.SetStatements.Add(new CodeMethodInvokeExpression( 1137var getExecutingAssembly = new CodeMethodInvokeExpression(getExecutingAssemblyReference); 1187checkRequired.Condition, CodeBinaryOperatorType.BooleanAnd, new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new CodeSnippetExpression(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new CodeSnippetExpression("false"))); 1191checkRequired.Condition = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), IsSwitchValueSetMethod), new CodeSnippetExpression(SurroundWithQuotes(required))), CodeBinaryOperatorType.IdentityEquality, new CodeSnippetExpression("false")); 1195checkRequired.TrueStatements.Add(new CodeMethodInvokeExpression(
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (15)
1007CodeMethodInvokeExpression cmieAdd = new CodeMethodInvokeExpression(cpreSetters, ADD, cvreES); 1850CodeMethodInvokeExpression cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 1988CodeMethodInvokeExpression cmieAddHandler = new CodeMethodInvokeExpression(ce, ADDHANDLER, cfreEvent, cDelExp); 2047CodeMethodInvokeExpression cmieOnEvent = new CodeMethodInvokeExpression(null, cmmEventHandler.Name); 2571CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression(); 2683CodeMethodInvokeExpression cmieLoadContent = new CodeMethodInvokeExpression(); 2764CodeMethodInvokeExpression cmieCI = new CodeMethodInvokeExpression(); 2800CodeMethodInvokeExpression cmieGPV = new CodeMethodInvokeExpression(); 2828CodeMethodInvokeExpression cmieSPV = new CodeMethodInvokeExpression(); 2865CodeMethodInvokeExpression cmieGetType = new CodeMethodInvokeExpression(); 2869CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression(); 2910CodeMethodInvokeExpression cmieAEH = new CodeMethodInvokeExpression(); 3207CodeMethodInvokeExpression cmieIT = new CodeMethodInvokeExpression(); 3217CodeMethodInvokeExpression cmieRun = new CodeMethodInvokeExpression(); 3282CodeMethodInvokeExpression cmieShowSplashScreen = new CodeMethodInvokeExpression(cvreAppSplash, "Show", new CodePrimitiveExpression(true));
System.Runtime.Serialization.Schema (9)
System\Runtime\Serialization\Schema\CodeExporter.cs (9)
1725setNode.Right = new CodeMethodInvokeExpression( 1746new CodeMethodInvokeExpression( 1782new CodeMethodInvokeExpression( 1876getEnumerator.InitExpression = new CodeMethodInvokeExpression( 1896addValue.Expression = new CodeMethodInvokeExpression( 1903loop.TestExpression = new CodeMethodInvokeExpression( 2014left = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(typeof(object)), 2019left = new CodeMethodInvokeExpression(left, "Equals", new CodeExpression[] { right }); 2024ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
System.Windows.Forms.Design (16)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2008expression = new CodeMethodInvokeExpression(methodRef, arguments);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
211CodeMethodInvokeExpression clearMethod = new(target, "Clear"); 504CodeMethodInvokeExpression statement = new CodeMethodInvokeExpression 640CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
513CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression 532CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
41ctor.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), InitMethodName));
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
134CodeMethodInvokeExpression methodInvoke = new()
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
165CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression 268CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
342CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
583CodeMethodInvokeExpression isResourceManagerNull = new( 787CodeExpression getValue = new CodeMethodInvokeExpression(
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
363CodeMethodInvokeExpression methodInvoke = new() 438CodeMethodInvokeExpression methodInvoke = new()
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
60CodeMethodInvokeExpression statement = new()
49 references to CodeMethodInvokeExpression
Microsoft.Build.Tasks.Core (5)
system.design\stronglytypedresourcebuilder.cs (2)
457var isResMgrNull = new CodeMethodInvokeExpression(object_equalsMethod, field_resMgr, new CodePrimitiveExpression(null)); 645var getValue = new CodeMethodInvokeExpression(resMgr, getMethodName, new CodePrimitiveExpression(resourceName), resCultureField);
XamlTaskFactory\TaskGenerator.cs (3)
488var isPropertySet = new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), IsPropertySetMethod, new CodeSnippetExpression(SurroundWithQuotes(fallbackParameter.Value))); 694CodeMethodInvokeExpression setParent = new CodeMethodInvokeExpression(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), ParentProperty), AddLastMethod, new CodeSnippetExpression(SurroundWithQuotes(parentName))); 1137var getExecutingAssembly = new CodeMethodInvokeExpression(getExecutingAssemblyReference);
PresentationBuildTasks (15)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (15)
1007CodeMethodInvokeExpression cmieAdd = new CodeMethodInvokeExpression(cpreSetters, ADD, cvreES); 1850CodeMethodInvokeExpression cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(desc.MemberInfo.DeclaringType.FullName), desc.MemberInfo.Name); 1988CodeMethodInvokeExpression cmieAddHandler = new CodeMethodInvokeExpression(ce, ADDHANDLER, cfreEvent, cDelExp); 2047CodeMethodInvokeExpression cmieOnEvent = new CodeMethodInvokeExpression(null, cmmEventHandler.Name); 2571CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression(); 2683CodeMethodInvokeExpression cmieLoadContent = new CodeMethodInvokeExpression(); 2764CodeMethodInvokeExpression cmieCI = new CodeMethodInvokeExpression(); 2800CodeMethodInvokeExpression cmieGPV = new CodeMethodInvokeExpression(); 2828CodeMethodInvokeExpression cmieSPV = new CodeMethodInvokeExpression(); 2865CodeMethodInvokeExpression cmieGetType = new CodeMethodInvokeExpression(); 2869CodeMethodInvokeExpression cmieCD = new CodeMethodInvokeExpression(); 2910CodeMethodInvokeExpression cmieAEH = new CodeMethodInvokeExpression(); 3207CodeMethodInvokeExpression cmieIT = new CodeMethodInvokeExpression(); 3217CodeMethodInvokeExpression cmieRun = new CodeMethodInvokeExpression(); 3282CodeMethodInvokeExpression cmieShowSplashScreen = new CodeMethodInvokeExpression(cvreAppSplash, "Show", new CodePrimitiveExpression(true));
System (1)
src\libraries\shims\System\ref\System.cs (1)
70[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeMethodInvokeExpression))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
474private void GenerateMethodInvokeExpression(CodeMethodInvokeExpression e) 1178else if (e is CodeMethodInvokeExpression) 1180GenerateMethodInvokeExpression((CodeMethodInvokeExpression)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1076protected override void GenerateMethodInvokeExpression(CodeMethodInvokeExpression e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
555else if (e is CodeMethodInvokeExpression) 557GenerateMethodInvokeExpression((CodeMethodInvokeExpression)e); 1380protected abstract void GenerateMethodInvokeExpression(CodeMethodInvokeExpression e);
System\CodeDom\Compiler\CodeValidator.cs (3)
719else if (e is CodeMethodInvokeExpression) 721ValidateMethodInvokeExpression((CodeMethodInvokeExpression)e); 862private void ValidateMethodInvokeExpression(CodeMethodInvokeExpression e)
System.Windows.Forms.Design (18)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
842else if (result is CodeMethodInvokeExpression methodInvokeEx) 2667else if (expression is CodeMethodInvokeExpression methodInvokeEx)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
211CodeMethodInvokeExpression clearMethod = new(target, "Clear"); 504CodeMethodInvokeExpression statement = new CodeMethodInvokeExpression 640CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
513CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression 532CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
134CodeMethodInvokeExpression methodInvoke = new()
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
165CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression 268CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (2)
35if (statement is CodeExpressionStatement { Expression: CodeMethodInvokeExpression methodInvokeEx }) 342CodeMethodInvokeExpression methodInvoke = new CodeMethodInvokeExpression
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
583CodeMethodInvokeExpression isResourceManagerNull = new( 593CodeMethodInvokeExpression getTypeInfo = new(
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
363CodeMethodInvokeExpression methodInvoke = new() 438CodeMethodInvokeExpression methodInvoke = new()
System\Windows\Forms\Design\ImageCollectionCodeDomSerializer.cs (1)
61CodeMethodInvokeExpression setNameMethodCall
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
60CodeMethodInvokeExpression statement = new()