31 instantiations of CodeMethodReferenceExpression
Microsoft.Build.Tasks.Core (6)
system.design\stronglytypedresourcebuilder.cs (1)
455var object_equalsMethod = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Object)), "ReferenceEquals");
XamlTaskFactory\TaskGenerator.cs (5)
442new CodeMethodReferenceExpression( 783var validateInt = new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), ValidateIntegerMethod); 1136var getExecutingAssemblyReference = new CodeMethodReferenceExpression(systemReflectionAssembly, "GetExecutingAssembly"); 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"));
PresentationBuildTasks (10)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (10)
2570CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Delegate)), "CreateDelegate"); 2682CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(KnownTypes.Types[(int)KnownElements.Application]), LOADCOMPONENT); 2763CodeMethodReferenceExpression cmreCI = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Activator)), "CreateInstance"); 2799CodeMethodReferenceExpression cmreGPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "GetValue"); 2827CodeMethodReferenceExpression cmreSPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "SetValue"); 2864CodeMethodReferenceExpression cmreGetType = new CodeMethodReferenceExpression(careTarget, "GetType"); 2868CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(cmieGetType, "InvokeMember"); 2909CodeMethodReferenceExpression cmreAEH = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(EVENTINFO), "AddEventHandler"); 3208cmieIT.Method = new CodeMethodReferenceExpression(cvreApp, INITIALIZE_COMPONENT); 3216CodeMethodReferenceExpression cmreRun = new CodeMethodReferenceExpression(cvreApp, "Run");
System.CodeDom (2)
System\CodeDom\CodeMethodInvokeExpression.cs (2)
20_method = new CodeMethodReferenceExpression(targetObject, methodName); 26get => _method ??= new CodeMethodReferenceExpression();
System.Windows.Forms.Design (13)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2007CodeMethodReferenceExpression methodRef = new(typeRefExp, methodInfo.Name);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
478CodeMethodReferenceExpression methodRef = new(targetExpression!, "Add"); 639CodeMethodReferenceExpression methodRef = new(targetExpression!, "AddRange");
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
512CodeMethodReferenceExpression method = new(castExp, "LoadComponentSettings"); 531CodeMethodReferenceExpression method = new(castExp, methodName);
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
136Method = new CodeMethodReferenceExpression(rmExpression, "ApplyResources")
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
164CodeMethodReferenceExpression methodRef = new(extender, $"Get{property.Name}"); 234CodeMethodReferenceExpression methodRef = new(extender, $"Set{property.Name}");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
344Method = new CodeMethodReferenceExpression(new CodeVariableReferenceExpression(ResourceManagerName), methodName)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
581new(new CodeTypeReferenceExpression(typeof(object)), "ReferenceEquals");
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
362CodeMethodReferenceExpression method = new(field, methodName); 437CodeMethodReferenceExpression method = new(controlsCollection, "SetChildIndex");
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
25CodeMethodReferenceExpression methodRef = new(targetExpression, "Add");
42 references to CodeMethodReferenceExpression
Microsoft.Build.Tasks.Core (3)
system.design\stronglytypedresourcebuilder.cs (1)
455var object_equalsMethod = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Object)), "ReferenceEquals");
XamlTaskFactory\TaskGenerator.cs (2)
783var validateInt = new CodeMethodReferenceExpression(new CodeThisReferenceExpression(), ValidateIntegerMethod); 1136var getExecutingAssemblyReference = new CodeMethodReferenceExpression(systemReflectionAssembly, "GetExecutingAssembly");
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
2570CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Delegate)), "CreateDelegate"); 2682CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(KnownTypes.Types[(int)KnownElements.Application]), LOADCOMPONENT); 2763CodeMethodReferenceExpression cmreCI = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(typeof(Activator)), "CreateInstance"); 2799CodeMethodReferenceExpression cmreGPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "GetValue"); 2827CodeMethodReferenceExpression cmreSPV = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(PROPINFO), "SetValue"); 2864CodeMethodReferenceExpression cmreGetType = new CodeMethodReferenceExpression(careTarget, "GetType"); 2868CodeMethodReferenceExpression cmreCD = new CodeMethodReferenceExpression(cmieGetType, "InvokeMember"); 2909CodeMethodReferenceExpression cmreAEH = new CodeMethodReferenceExpression(new CodeArgumentReferenceExpression(EVENTINFO), "AddEventHandler"); 3216CodeMethodReferenceExpression cmreRun = new CodeMethodReferenceExpression(cvreApp, "Run");
System (1)
src\libraries\shims\System\ref\System.cs (1)
71[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeMethodReferenceExpression))]
System.CodeDom (13)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
482private void GenerateMethodReferenceExpression(CodeMethodReferenceExpression e) 1182else if (e is CodeMethodReferenceExpression) 1184GenerateMethodReferenceExpression((CodeMethodReferenceExpression)e);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1088protected override void GenerateMethodReferenceExpression(CodeMethodReferenceExpression e)
System\CodeDom\CodeMethodInvokeExpression.cs (3)
8private CodeMethodReferenceExpression _method; 12public CodeMethodInvokeExpression(CodeMethodReferenceExpression method, params CodeExpression[] parameters) 24public CodeMethodReferenceExpression Method
System\CodeDom\Compiler\CodeGenerator.cs (3)
559else if (e is CodeMethodReferenceExpression) 561GenerateMethodReferenceExpression((CodeMethodReferenceExpression)e); 1381protected abstract void GenerateMethodReferenceExpression(CodeMethodReferenceExpression e);
System\CodeDom\Compiler\CodeValidator.cs (3)
723else if (e is CodeMethodReferenceExpression) 725ValidateMethodReferenceExpression((CodeMethodReferenceExpression)e); 868private void ValidateMethodReferenceExpression(CodeMethodReferenceExpression e)
System.Windows.Forms.Design (16)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
717if (typeof(Delegate).IsAssignableFrom(type) && parameters is [CodeMethodReferenceExpression methodRef]) 1155else if (result is CodeEventReferenceExpression or CodeMethodReferenceExpression or CodeDelegateCreateExpression) 1194if (objCreate.Parameters[0] is CodeMethodReferenceExpression methodRef) 2007CodeMethodReferenceExpression methodRef = new(typeRefExp, methodInfo.Name); 2671else if (expression is CodeMethodReferenceExpression methodReferenceEx)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
478CodeMethodReferenceExpression methodRef = new(targetExpression!, "Add"); 639CodeMethodReferenceExpression methodRef = new(targetExpression!, "AddRange");
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
512CodeMethodReferenceExpression method = new(castExp, "LoadComponentSettings"); 531CodeMethodReferenceExpression method = new(castExp, methodName);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
164CodeMethodReferenceExpression methodRef = new(extender, $"Get{property.Name}"); 234CodeMethodReferenceExpression methodRef = new(extender, $"Set{property.Name}");
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
750else if (expression is CodeMethodReferenceExpression codeMethod)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
580CodeMethodReferenceExpression objectEqualsMethod =
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
362CodeMethodReferenceExpression method = new(field, methodName); 437CodeMethodReferenceExpression method = new(controlsCollection, "SetChildIndex");
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
25CodeMethodReferenceExpression methodRef = new(targetExpression, "Add");