1 write to Method
System.Linq.Expressions (1)
System\Linq\Expressions\MethodCallExpression.cs (1)
21
Method
= method;
109 references to Method
Microsoft.AspNetCore.Components.Forms (1)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
150
var methodInfoData = GetOrCreateMethodInfoData(methodExpression.
Method
);
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
150
var methodInfoData = GetOrCreateMethodInfoData(methodExpression.
Method
);
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2373
return mc.
Method
;
Microsoft.AspNetCore.Http.Extensions.Tests (8)
ParameterBindingMethodCacheTests.cs (8)
35
var parameters = call!.
Method
.GetParameters();
53
var parameters = call!.
Method
.GetParameters();
75
var parameters = call!.
Method
.GetParameters();
107
var parameters = call!.
Method
.GetParameters();
131
var parameters = call!.
Method
.GetParameters();
185
var method = call!.
Method
;
755
return mc.
Method
.GetParameters()[0];
761
return mc.
Method
.GetParameters()[paramIndex];
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1722
MethodCallExpression mce => mce.
Method
.Name,
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ExpressionHelper.cs (2)
244
var declaringType = methodExpression.
Method
.DeclaringType;
256
property.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)
64
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
65
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
66
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`3.cs (5)
65
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
66
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
69
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`4.cs (5)
66
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
69
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
70
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo2`4.cs (5)
66
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
69
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
70
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`3.cs (5)
65
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
66
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
69
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`4.cs (5)
66
Contracts.CheckParam(methodCallExpression.
Method
.DeclaringType == typeof(MethodInfo), nameof(expression), "Unexpected expression form");
67
Contracts.CheckParam(methodCallExpression.
Method
.Name == nameof(MethodInfo.CreateDelegate), nameof(expression), "Unexpected expression form");
68
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters().Length == 2, nameof(expression), "Unexpected expression form");
69
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[0].ParameterType == typeof(Type), nameof(expression), "Unexpected expression form");
70
Contracts.CheckParam(methodCallExpression.
Method
.GetParameters()[1].ParameterType == typeof(object), nameof(expression), "Unexpected expression form");
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
40
var memberInfo = ((MethodCallExpression)expr).
Method
as MethodInfo;
System.Linq.Expressions (61)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (2)
172
if (!node.
Method
.IsStatic &&
174
node.
Method
== TypeUtils.GetArrayGetMethod(node.Object.Type))
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (1)
357
EmitMethodCall(node.Object, node.
Method
, node, flags);
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
447
cr.MarkRefArgs(node.
Method
, startIndex: 1);
454
expr = new InstanceMethodCallExpressionN(node.
Method
, cr[0]!, cr[1, -1]!);
458
expr = new MethodCallExpressionN(node.
Method
, cr[1, -1]!);
System\Linq\Expressions\DebugViewWriter.cs (3)
772
else if (node.
Method
.DeclaringType != null)
774
Out(node.
Method
.DeclaringType.ToString());
781
Out(node.
Method
.Name);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
324
public MethodInfo Method => _node.
Method
;
System\Linq\Expressions\ExpressionStringBuilder.cs (2)
516
if (node.
Method
.GetCustomAttribute(typeof(ExtensionAttribute)) != null)
527
Out(node.
Method
.Name);
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2136
CompileMethodCallExpression(node.Object!, node.
Method
, node);
2339
if (!call.
Method
.IsStatic &&
2341
call.
Method
== TypeUtils.GetArrayGetMethod(call.Object.Type))
System\Linq\Expressions\MethodCallExpression.cs (46)
36
public sealed override Type Type =>
Method
.ReturnType;
88
return Call(@object,
Method
, arguments);
194
return Expression.Call(
Method
, args ?? _arguments);
225
return Expression.Call(instance,
Method
, args ?? _arguments);
256
return Expression.Call(
Method
);
305
return Expression.Call(
Method
, args[0]);
308
return Expression.Call(
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0));
371
return Expression.Call(
Method
, args[0], args[1]);
373
return Expression.Call(
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1);
442
return Expression.Call(
Method
, args[0], args[1], args[2]);
444
return Expression.Call(
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2);
519
return Expression.Call(
Method
, args[0], args[1], args[2], args[3]);
521
return Expression.Call(
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3);
602
return Expression.Call(
Method
, args[0], args[1], args[2], args[3], args[4]);
605
return Expression.Call(
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1, _arg2, _arg3, _arg4);
636
return Expression.Call(instance,
Method
);
687
return Expression.Call(instance,
Method
, args[0]);
689
return Expression.Call(instance,
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0));
752
return Expression.Call(instance,
Method
, args[0], args[1]);
754
return Expression.Call(instance,
Method
, ExpressionUtils.ReturnObject<Expression>(_arg0), _arg1);
823
return Expression.Call(instance,
Method
, args[0], args[1], args[2]);
825
return 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)
36
MethodInfo mInfo = m.
Method
;