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