1 write to Method
System.Linq.Expressions (1)
System\Linq\Expressions\MethodCallExpression.cs (1)
21Method = method;
109 references to Method
Microsoft.AspNetCore.Components.Forms (1)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
150var methodInfoData = GetOrCreateMethodInfoData(methodExpression.Method);
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
150var methodInfoData = GetOrCreateMethodInfoData(methodExpression.Method);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2373return mc.Method;
Microsoft.AspNetCore.Http.Extensions.Tests (8)
ParameterBindingMethodCacheTests.cs (8)
35var parameters = call!.Method.GetParameters(); 53var parameters = call!.Method.GetParameters(); 75var parameters = call!.Method.GetParameters(); 107var parameters = call!.Method.GetParameters(); 131var parameters = call!.Method.GetParameters(); 185var method = call!.Method; 755return mc.Method.GetParameters()[0]; 761return mc.Method.GetParameters()[paramIndex];
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1722MethodCallExpression mce => mce.Method.Name,
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ExpressionHelper.cs (2)
244var declaringType = methodExpression.Method.DeclaringType; 256property.GetMethod == methodExpression.Method))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
ExpressionTrees\Sources\ExprLambdaUtils.vb (2)
345_s.AppendLine(indent + "method: " + node.Method.ToString() + " in " + node.Method.DeclaringType.ToString() + " (")
Microsoft.ML.Core (30)
Utilities\FuncInstanceMethodInfo1`2.cs (5)
64Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 65Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 66Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`3.cs (5)
65Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 66Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 69Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`4.cs (5)
66Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 69Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 70Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo2`4.cs (5)
66Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 69Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 70Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`3.cs (5)
65Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 66Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 69Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`4.cs (5)
66Contracts.CheckParam(methodCallExpression.Method.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form"); 67Contracts.CheckParam(methodCallExpression.Method.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form"); 68Contracts.CheckParam(methodCallExpression.Method.GetParameters().Length == 2, nameof(expression), "Unexpected expression form"); 69Contracts.CheckParam(methodCallExpression.Method.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form"); 70Contracts.CheckParam(methodCallExpression.Method.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
40var memberInfo = ((MethodCallExpression)expr).Method as MethodInfo;
System.Linq.Expressions (61)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (2)
172if (!node.Method.IsStatic && 174node.Method == TypeUtils.GetArrayGetMethod(node.Object.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
357EmitMethodCall(node.Object, node.Method, node, flags);
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
447cr.MarkRefArgs(node.Method, startIndex: 1); 454expr = new InstanceMethodCallExpressionN(node.Method, cr[0]!, cr[1, -1]!); 458expr = new MethodCallExpressionN(node.Method, cr[1, -1]!);
System\Linq\Expressions\DebugViewWriter.cs (3)
772else if (node.Method.DeclaringType != null) 774Out(node.Method.DeclaringType.ToString()); 781Out(node.Method.Name);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
324public MethodInfo Method => _node.Method;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
516if (node.Method.GetCustomAttribute(typeof(ExtensionAttribute)) != null) 527Out(node.Method.Name);
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2136CompileMethodCallExpression(node.Object!, node.Method, node); 2339if (!call.Method.IsStatic && 2341call.Method == TypeUtils.GetArrayGetMethod(call.Object.Type))
System\Linq\Expressions\MethodCallExpression.cs (46)
36public sealed override Type Type => Method.ReturnType; 88return Call(@object, Method, arguments); 194return Expression.Call(Method, args ?? _arguments); 225return Expression.Call(instance, Method, args ?? _arguments); 256return Expression.Call(Method); 305return Expression.Call(Method, args[0]); 308return Expression.Call(Method, ExpressionUtils.ReturnObject<Expression>(_arg0)); 371return Expression.Call(Method, args[0], args[1]); 373return Expression.Call(Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1); 442return Expression.Call(Method, args[0], args[1], args[2]); 444return Expression.Call(Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2); 519return Expression.Call(Method, args[0], args[1], args[2], args[3]); 521return Expression.Call(Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3); 602return Expression.Call(Method, args[0], args[1], args[2], args[3], args[4]); 605return Expression.Call(Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3, _arg4); 636return Expression.Call(instance, Method); 687return Expression.Call(instance, Method, args[0]); 689return Expression.Call(instance, Method, ExpressionUtils.ReturnObject<Expression>(_arg0)); 752return Expression.Call(instance, Method, args[0], args[1]); 754return Expression.Call(instance, Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1); 823return Expression.Call(instance, Method, args[0], args[1], args[2]); 825return Expression.Call(instance, Method, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2); 836/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 837/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 854/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 855/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 874/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 875/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 897/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 898/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 923/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 924/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 952/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 953/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param> 961/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 989/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1000/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1011/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1034/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1046/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1075/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1105/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/> and <see cref="MethodCallExpression.Method"/> properties set to the specified values.</returns> 1129/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/>, the <see cref="MethodCallExpression.Object"/> property equal to <paramref name="instance"/>, <see cref="MethodCallExpression.Method"/> set to the <see cref="MethodInfo"/> that represents the specified instance method, and <see cref="MethodCallExpression.Arguments"/> set to the specified arguments.</returns> 1153/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/>, the <see cref="MethodCallExpression.Method"/> property set to the <see cref="MethodInfo"/> that represents the specified static (Shared in Visual Basic) method, and the <see cref="MethodCallExpression.Arguments"/> property set to the specified arguments.</returns> 1181/// <returns>A <see cref="MethodCallExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Call"/> and the <see cref="MethodCallExpression.Object"/>, <see cref="MethodCallExpression.Method"/>, and <see cref="MethodCallExpression.Arguments"/> properties set to the specified values.</returns> 1183/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="MethodCallExpression.Method"/> property equal to.</param>
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
36MethodInfo mInfo = m.Method;