8 types derived from MethodCallExpression
System.Linq.Expressions (8)
System\Linq\Expressions\MethodCallExpression.cs (8)
152
internal class InstanceMethodCallExpression :
MethodCallExpression
, IArgumentProvider
167
internal sealed class MethodCallExpressionN :
MethodCallExpression
, IArgumentProvider
229
internal sealed class MethodCallExpression0 :
MethodCallExpression
, IArgumentProvider
260
internal sealed class MethodCallExpression1 :
MethodCallExpression
, IArgumentProvider
312
internal sealed class MethodCallExpression2 :
MethodCallExpression
, IArgumentProvider
377
internal sealed class MethodCallExpression3 :
MethodCallExpression
, IArgumentProvider
448
internal sealed class MethodCallExpression4 :
MethodCallExpression
, IArgumentProvider
525
internal sealed class MethodCallExpression5 :
MethodCallExpression
, IArgumentProvider
254 references to MethodCallExpression
Microsoft.AspNetCore.Components.Endpoints (4)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (4)
282
static
MethodCallExpression
PushPrefix(Expression readerParam, string prefix)
291
static
MethodCallExpression
AddMappingError(Expression readerParam, string message, string parameter)
294
var
formattableString = Expression.Call(
309
static
MethodCallExpression
PopPrefix(Expression readerParam, string prefix)
Microsoft.AspNetCore.Components.Forms (4)
FieldIdentifier.cs (1)
140
case
MethodCallExpression
methodCallExpression when ExpressionFormatter.IsSingleArgumentIndexer(accessorBody):
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (3)
54
var
methodCallExpression = (
MethodCallExpression
)node;
145
if (expression is not
MethodCallExpression
methodExpression || methodExpression.Arguments.Count != 1)
Microsoft.AspNetCore.Components.Web (3)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (3)
54
var
methodCallExpression = (
MethodCallExpression
)node;
145
if (expression is not
MethodCallExpression
methodExpression || methodExpression.Arguments.Count != 1)
Microsoft.AspNetCore.Http.Abstractions (2)
Extensions\UseMiddlewareExtensions.cs (2)
259
var
getServiceCall = Expression.Call(hasServiceKey ? GetKeyedServiceInfo : GetServiceInfo, parameterTypeExpression);
321
var
body = Expression.Call(middlewareInstanceArg, methodInfo, methodArguments);
Microsoft.AspNetCore.Http.Extensions (14)
RequestDelegateFactory.cs (5)
2146
var
processFormExpr = Expression.Call(ProcessFormMethod, FormExpr, Expression.Constant(formDataMapperOptions.MaxKeyBufferSize), formDict, formBuffer);
2160
var
invokeMapMethodExpr = Expression.Call(
2168
var
returnBufferExpr = Expression.Call(
2379
var
mc = (
MethodCallExpression
)expr.Body;
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (4)
282
static
MethodCallExpression
PushPrefix(Expression readerParam, string prefix)
291
static
MethodCallExpression
AddMappingError(Expression readerParam, string message, string parameter)
294
var
formattableString = Expression.Call(
309
static
MethodCallExpression
PopPrefix(Expression readerParam, string prefix)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
218
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
270
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
90
var
startAsTaskCall =
src\Shared\ParameterBindingMethodCache.cs (2)
247
MethodCallExpression
typedCall;
268
MethodCallExpression
typedCall;
Microsoft.AspNetCore.Http.Extensions.Tests (16)
ParameterBindingMethodCacheTests.cs (16)
33
var
call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as
MethodCallExpression
;
51
var
call = methodFound!(Expression.Variable(typeof(Uri), "parsedValue"), Expression.Constant(UriKind.RelativeOrAbsolute)) as
MethodCallExpression
;
73
var
call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as
MethodCallExpression
;
105
var
call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as
MethodCallExpression
;
129
var
call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as
MethodCallExpression
;
183
var
call = methodFound!(Expression.Variable(type, "parsedValue"), Expression.Constant(CultureInfo.InvariantCulture)) as
MethodCallExpression
;
754
var
mc = (
MethodCallExpression
)expr.Body;
760
var
mc = (
MethodCallExpression
)expr.Body;
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1722
MethodCallExpression
mce => mce.Method.Name,
Microsoft.AspNetCore.JsonPatch (2)
JsonPatchDocumentOfT.cs (2)
688
var
methodCallExpression = (
MethodCallExpression
)expr;
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocumentOfT.cs (2)
689
var
methodCallExpression = (
MethodCallExpression
)expr;
Microsoft.AspNetCore.Mvc.Abstractions (2)
src\Shared\ParameterBindingMethodCache.cs (2)
247
MethodCallExpression
typedCall;
268
MethodCallExpression
typedCall;
Microsoft.AspNetCore.Mvc.Core (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
218
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
270
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
90
var
startAsTaskCall =
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
ExpressionHelper.cs (5)
57
var
methodExpression = (
MethodCallExpression
)part;
149
var
methodExpression = (
MethodCallExpression
)part;
237
if (!(expression is
MethodCallExpression
methodExpression) || methodExpression.Arguments.Count != 1)
Microsoft.AspNetCore.OpenApi (5)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
218
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
270
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
90
var
startAsTaskCall =
src\Shared\ParameterBindingMethodCache.cs (2)
247
MethodCallExpression
typedCall;
268
MethodCallExpression
typedCall;
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
218
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
270
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
90
var
startAsTaskCall =
Microsoft.AspNetCore.SignalR.Core (4)
Internal\HubMethodDescriptor.cs (1)
245
var
methodCall = Expression.Call(null, genericMethodInfo, methodArguments);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
218
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
270
var
methodCall = Expression.Call(instanceCast, methodInfo, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (1)
90
var
startAsTaskCall =
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
341
Protected Overrides Function VisitMethodCall(node As
MethodCallExpression
) As Expression
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
167
new PredefinedTypeInfo(PredefinedType.PT_METHODCALLEXPRESSION, typeof(System.Linq.Expressions.
MethodCallExpression
), "System.Linq.Expressions.MethodCallExpression"),
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
HelperFactory.cs (1)
195
var
body = Expression.Call(HandlebarsExtensionsWriteSafeString, outputParameter, writerOutput);
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (5)
223
MethodCallExpression
resolveRootScopeExpression = Expression.Call(
237
MethodCallExpression
tryGetValueExpression = Expression.Call(
249
MethodCallExpression
addValueExpression = Expression.Call(
274
MethodCallExpression
monitorEnter = Expression.Call(ServiceLookupHelpers.MonitorEnterMethodInfo, sync, lockWasTaken);
275
MethodCallExpression
monitorExit = Expression.Call(ServiceLookupHelpers.MonitorExitMethodInfo, sync);
Microsoft.ML.Core (12)
Utilities\FuncInstanceMethodInfo1`2.cs (2)
58
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
84
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`3.cs (2)
59
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
85
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo1`4.cs (2)
60
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
86
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo2`4.cs (2)
60
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
86
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`3.cs (2)
59
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
85
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
Utilities\FuncInstanceMethodInfo3`4.cs (2)
60
if (!(expression is { Body: UnaryExpression { Operand:
MethodCallExpression
methodCallExpression } }))
86
Contracts.CheckParam(((UnaryExpression)expression.Body).Operand is
MethodCallExpression
, nameof(expression), "Unexpected expression form");
netstandard (1)
netstandard.cs (1)
1018
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
MethodCallExpression
))]
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\ConstraintServices.cs (3)
117
private static
MethodCallExpression
CreateMetadataContainsKeyExpression(ParameterExpression parameter, string constantKey)
136
private static
MethodCallExpression
CreateMetadataOfTypeExpression(ParameterExpression parameter, string constantKey, Type constantType)
164
private static
MethodCallExpression
CreateMetadataValueEqualsExpression(ParameterExpression parameter, object constantValue, string metadataName)
System.ComponentModel.Composition.Registration (2)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (2)
114
var
methodCallExpression = (
MethodCallExpression
)argument;
System.Composition.Convention (3)
System\Composition\Convention\PartConventionBuilderOfT.cs (3)
37
var memberInfo = ((
MethodCallExpression
)expr).Method as MethodInfo;
173
var
methodCallExpression = (
MethodCallExpression
)argument;
System.Core (1)
System.Core.cs (1)
156
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
MethodCallExpression
))]
System.Linq.Expressions (145)
System\Linq\Expressions\BinaryExpression.cs (1)
442
private static
MethodCallExpression
CallGetValueOrDefault(ParameterExpression nullable)
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (2)
51
AddressOf((
MethodCallExpression
)node, type);
165
private void AddressOf(
MethodCallExpression
node, Type type)
System\Linq\Expressions\Compiler\LambdaCompiler.Binary.cs (1)
99
MethodCallExpression
mc = Expression.Call(null, b.Method!, p1, p2);
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (3)
355
MethodCallExpression
node = (
MethodCallExpression
)expr;
1112
private void EmitLift(ExpressionType nodeType, Type resultType,
MethodCallExpression
mc, ParameterExpression[] paramList, Expression[] argList)
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
755
private static
MethodCallExpression
CallTryGetValue(Expression dictInit, ParameterExpression switchValue, ParameterExpression switchIndex)
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
355
MethodCallExpression
mc = Expression.Call(node.Method!, v);
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
434
MethodCallExpression
node = (
MethodCallExpression
)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
765
protected internal override Expression VisitMethodCall(
MethodCallExpression
node)
System\Linq\Expressions\Expression.cs (1)
156
/// example, <see cref="
MethodCallExpression
"/> will call into
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
313
private readonly
MethodCallExpression
_node;
315
public MethodCallExpressionProxy(
MethodCallExpression
node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
511
protected internal override Expression VisitMethodCall(
MethodCallExpression
node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
398
/// Visits the children of the <see cref="
MethodCallExpression
"/>.
403
protected internal virtual Expression VisitMethodCall(
MethodCallExpression
node)
System\Linq\Expressions\IArgumentProvider.cs (2)
8
/// <see cref="ElementInit"/>, <see cref="
MethodCallExpression
"/>, <see cref="InvocationExpression"/>,
19
/// <see cref="BlockExpression"/>, <see cref="InvocationExpression"/>, <see cref="
MethodCallExpression
"/>.
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
2135
var
node = (
MethodCallExpression
)expr;
2338
var
call = (
MethodCallExpression
)node;
System\Linq\Expressions\MethodCallExpression.cs (118)
62
public
MethodCallExpression
Update(Expression? @object, IEnumerable<Expression>? arguments)
120
internal virtual
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
189
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
220
internal override
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
251
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
298
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
364
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
435
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
512
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
595
internal override
MethodCallExpression
Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
631
internal override
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
680
internal override
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
745
internal override
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
816
internal override
MethodCallExpression
Rewrite(Expression instance, IReadOnlyList<Expression>? args)
835
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes no arguments.</summary>
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>
840
internal static
MethodCallExpression
Call(MethodInfo method)
853
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes one argument.</summary>
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>
859
public static
MethodCallExpression
Call(MethodInfo method, Expression arg0)
873
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes two arguments.</summary>
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>
880
public static
MethodCallExpression
Call(MethodInfo method, Expression arg0, Expression arg1)
896
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes three arguments.</summary>
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>
904
public static
MethodCallExpression
Call(MethodInfo method, Expression arg0, Expression arg1, Expression arg2)
922
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes four arguments.</summary>
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>
931
public static
MethodCallExpression
Call(MethodInfo method, Expression arg0, Expression arg1, Expression arg2, Expression arg3)
951
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static method that takes five arguments.</summary>
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>
962
public static
MethodCallExpression
Call(MethodInfo method, Expression arg0, Expression arg1, Expression arg2, Expression arg3, Expression arg4)
985
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static (Shared in Visual Basic) method.
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>
990
public static
MethodCallExpression
Call(MethodInfo method, params Expression[]? arguments)
996
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static (Shared in Visual Basic) method.
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>
1001
public static
MethodCallExpression
Call(MethodInfo method, IEnumerable<Expression>? arguments)
1007
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a method that takes no arguments.
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>
1012
public static
MethodCallExpression
Call(Expression? instance, MethodInfo method)
1029
/// Creates a <see cref="
MethodCallExpression
"/> that represents a method call.
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>
1035
public static
MethodCallExpression
Call(Expression? instance, MethodInfo method, params Expression[]? arguments)
1041
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a method that takes one argument.
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>
1047
internal static
MethodCallExpression
Call(Expression? instance, MethodInfo method, Expression arg0)
1069
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a method that takes two arguments.
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>
1076
public static
MethodCallExpression
Call(Expression? instance, MethodInfo method, Expression arg0, Expression arg1)
1098
/// Creates a <see cref="
MethodCallExpression
"/> that represents a call to a method that takes three arguments.
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>
1106
public static
MethodCallExpression
Call(Expression? instance, MethodInfo method, Expression arg0, Expression arg1, Expression arg2)
1128
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to an instance method by calling the appropriate factory method.</summary>
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>
1142
public static
MethodCallExpression
Call(Expression instance, string methodName, Type[]? typeArguments, params Expression[]? arguments)
1152
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a call to a static (Shared in Visual Basic) method by calling the appropriate factory method.</summary>
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>
1166
public static
MethodCallExpression
Call(
1180
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents a method call.</summary>
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>
1182
/// <param name="instance">An <see cref="Expression"/> to set the <see cref="
MethodCallExpression
.Object"/> property equal to (pass null for a static (Shared in Visual Basic) method).</param>
1183
/// <param name="method">A <see cref="MethodInfo"/> to set the <see cref="
MethodCallExpression
.Method"/> property equal to.</param>
1184
/// <param name="arguments">An <see cref="IEnumerable{Expression}"/> that contains <see cref="Expression"/> objects to use to populate the <see cref="
MethodCallExpression
.Arguments"/> collection.</param>
1189
public static
MethodCallExpression
Call(Expression? instance, MethodInfo method, IEnumerable<Expression>? arguments)
1392
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents applying an array index operator to a multi-dimensional array.</summary>
1395
/// <param name="indexes">An array that contains <see cref="Expression"/> objects to use to populate the <see cref="
MethodCallExpression
.Arguments"/> collection.</param>
1396
public static
MethodCallExpression
ArrayIndex(Expression array, params Expression[] indexes)
1401
/// <summary>Creates a <see cref="
MethodCallExpression
"/> that represents applying an array index operator to an array of rank more than one.</summary>
1402
/// <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
.Arguments"/> properties set to the specified values.</returns>
1403
/// <param name="array">An <see cref="Expression"/> to set the <see cref="
MethodCallExpression
.Object"/> property equal to.</param>
1404
/// <param name="indexes">An <see cref="IEnumerable{T}"/> that contains <see cref="Expression"/> objects to use to populate the <see cref="
MethodCallExpression
.Arguments"/> collection.</param>
1409
public static
MethodCallExpression
ArrayIndex(Expression array, IEnumerable<Expression> indexes)
System\Linq\IQueryable.cs (3)
54
/// Several of the standard query operator methods defined in Queryable, such as OfType{TResult} and Cast{TResult}, call this method. They pass it a <see cref="
MethodCallExpression
"/> that represents a LINQ query.
65
/// Most of the Queryable standard query operator methods that return enumerable results call this method.They pass it a <see cref="
MethodCallExpression
"/> that represents a LINQ query.
87
/// The Queryable standard query operator methods that return singleton results call <see cref="Execute{TElement}"/>. They pass it a <see cref="
MethodCallExpression
"/> that represents a LINQ query.
System.Linq.Queryable (9)
System\Linq\EnumerableRewriter.cs (1)
28
protected override Expression VisitMethodCall(
MethodCallExpression
m)
System\Linq\Queryable.cs (8)
291
/// The <see cref="Order{T}(IQueryable{T})"/> method generates a <see cref="
MethodCallExpression
"/> that represents
293
/// It then passes the <see cref="
MethodCallExpression
"/> to the <see cref="IQueryProvider.CreateQuery{TElement}(Expression)"/> method
328
/// The <see cref="Order{T}(IQueryable{T})"/> method generates a <see cref="
MethodCallExpression
"/> that represents
330
/// It then passes the <see cref="
MethodCallExpression
"/> to the <see cref="IQueryProvider.CreateQuery{TElement}(Expression)"/> method
390
/// The <see cref="Order{T}(IQueryable{T})"/> method generates a <see cref="
MethodCallExpression
"/> that represents
392
/// It then passes the <see cref="
MethodCallExpression
"/> to the <see cref="IQueryProvider.CreateQuery{TElement}(Expression)"/> method
427
/// The <see cref="Order{T}(IQueryable{T})"/> method generates a <see cref="
MethodCallExpression
"/> that represents
429
/// It then passes the <see cref="
MethodCallExpression
"/> to the <see cref="IQueryProvider.CreateQuery{TElement}(Expression)"/> method