1 type derived from LambdaExpression
System.Linq.Expressions (1)
System\Linq\Expressions\LambdaExpression.cs (1)
202
public class Expression<TDelegate> :
LambdaExpression
281 references to LambdaExpression
Aspire.Hosting.RemoteHost (1)
Ats\AtsCallbackProxyFactory.cs (1)
120
var
lambda = Expression.Lambda(delegateType, body, paramExprs);
Microsoft.AspNetCore.Components.Forms (4)
FieldIdentifier.cs (2)
143
var
modelLambda = Expression.Lambda(typeof(Func<object?>), memberExpression.Expression);
218
var
methodCallObjectLambda = Expression.Lambda(typeof(Func<object?>), methodCallExpression!);
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
36
public static string FormatLambda(
LambdaExpression
expression)
41
public static string FormatLambda(
LambdaExpression
expression, string? prefix = null)
Microsoft.AspNetCore.Components.Web (13)
Forms\Editor.cs (1)
42
protected string NameFor(
LambdaExpression
expression) => _value!.GetFieldName(expression);
Forms\ExpressionMemberAccessor.cs (2)
32
var
lambdaExpression = (
LambdaExpression
)expr;
Forms\HtmlFieldPrefix.cs (8)
8
internal class HtmlFieldPrefix(
LambdaExpression
initial)
10
private readonly
LambdaExpression
[] _rest = Array.Empty<
LambdaExpression
>();
12
internal HtmlFieldPrefix(
LambdaExpression
expression, params
LambdaExpression
[] rest)
18
public HtmlFieldPrefix Combine(
LambdaExpression
other)
22
var expressions = new
LambdaExpression
[length];
33
public string GetFieldName(
LambdaExpression
expression)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
36
public static string FormatLambda(
LambdaExpression
expression)
41
public static string FormatLambda(
LambdaExpression
expression, string? prefix = null)
Microsoft.AspNetCore.Http.Extensions (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
36
/// Builds a <see cref="
LambdaExpression
"/> for converting a value of the given generic instantiation of
48
/// contains a <see cref="
LambdaExpression
"/> for converting a value of type <paramref name="possibleFSharpAsyncType"/>
113
/// Builds a <see cref="
LambdaExpression
"/> for converting a <c>Task<unit></c> or <c>ValueTask<unit></c>
120
/// contains a <see cref="
LambdaExpression
"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.Mvc.Core (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
36
/// Builds a <see cref="
LambdaExpression
"/> for converting a value of the given generic instantiation of
48
/// contains a <see cref="
LambdaExpression
"/> for converting a value of type <paramref name="possibleFSharpAsyncType"/>
113
/// Builds a <see cref="
LambdaExpression
"/> for converting a <c>Task<unit></c> or <c>ValueTask<unit></c>
120
/// contains a <see cref="
LambdaExpression
"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
ExpressionHelper.cs (4)
16
public static string GetUncachedExpressionText(
LambdaExpression
expression)
19
public static string GetExpressionText(
LambdaExpression
expression, ConcurrentDictionary<
LambdaExpression
, string> expressionTextCache)
200
LambdaExpression
parentExpression)
LambdaExpressionComparer.cs (4)
10
internal sealed class LambdaExpressionComparer : IEqualityComparer<
LambdaExpression
>
14
public bool Equals(
LambdaExpression
lambdaExpression1,
LambdaExpression
lambdaExpression2)
81
public int GetHashCode(
LambdaExpression
lambdaExpression)
ModelExpressionProvider.cs (2)
16
private readonly ConcurrentDictionary<
LambdaExpression
, string> _expressionTextCache;
27
_expressionTextCache = new ConcurrentDictionary<
LambdaExpression
, string>(LambdaExpressionComparer.Instance);
ModelStateDictionaryExtensions.cs (1)
146
private static string GetExpressionText(
LambdaExpression
expression)
Microsoft.AspNetCore.SignalR.Core (4)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
36
/// Builds a <see cref="
LambdaExpression
"/> for converting a value of the given generic instantiation of
48
/// contains a <see cref="
LambdaExpression
"/> for converting a value of type <paramref name="possibleFSharpAsyncType"/>
113
/// Builds a <see cref="
LambdaExpression
"/> for converting a <c>Task<unit></c> or <c>ValueTask<unit></c>
120
/// contains a <see cref="
LambdaExpression
"/> for converting to the corresponding void-returning awaitable type;
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
34
private static readonly
LambdaExpression
CaptureDisposable = Expression.Lambda(
Microsoft.NET.Sdk.Publish.Tasks (1)
MsDeploy\DynamicAssembly.cs (1)
164
var
lambda = Expression.Lambda(body, parameters);
netstandard (1)
netstandard.cs (1)
1008
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
LambdaExpression
))]
System.ComponentModel.Composition.Registration (2)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (2)
120
var
lambdaExpression = (
LambdaExpression
)parameter;
System.Composition.Convention (2)
System\Composition\Convention\PartConventionBuilderOfT.cs (2)
179
var
lambdaExpression = (
LambdaExpression
)parameter;
System.Core (1)
System.Core.cs (1)
146
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.
LambdaExpression
))]
System.Linq.Expressions (231)
System\Dynamic\Utils\ExpressionUtils.cs (2)
221
Type quoteable = typeof(
LambdaExpression
);
309
public static void ValidateArgumentCount(this
LambdaExpression
lambda)
System\Linq\Expressions\BinaryExpression.cs (46)
92
public BinaryExpression Update(Expression left,
LambdaExpression
? conversion, Expression right)
165
LambdaExpression
? conversion = GetConversion();
198
LambdaExpression
? conversion = GetConversion();
257
LambdaExpression
? conversion = GetConversion();
275
public
LambdaExpression
? Conversion => GetConversion();
277
internal virtual
LambdaExpression
? GetConversion() => null;
313
internal static BinaryExpression Create(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo? method,
LambdaExpression
? conversion)
513
private readonly
LambdaExpression
_conversion;
515
internal CoalesceConversionBinaryExpression(Expression left, Expression right,
LambdaExpression
conversion)
521
internal override
LambdaExpression
GetConversion() => _conversion;
533
private readonly
LambdaExpression
_conversion;
535
internal OpAssignMethodConversionBinaryExpression(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method,
LambdaExpression
conversion)
541
internal override
LambdaExpression
GetConversion() => _conversion;
662
private static BinaryExpression GetMethodBasedAssignOperator(ExpressionType binaryType, Expression left, Expression right, MethodInfo method,
LambdaExpression
? conversion, bool liftToNull)
695
private static BinaryExpression GetUserDefinedAssignOperatorOrThrow(ExpressionType binaryType, string name, Expression left, Expression right,
LambdaExpression
? conversion, bool liftToNull)
900
public static BinaryExpression MakeBinary(ExpressionType binaryType, Expression left, Expression right, bool liftToNull, MethodInfo? method,
LambdaExpression
? conversion) =>
1376
public static BinaryExpression Coalesce(Expression left, Expression right,
LambdaExpression
? conversion)
1520
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
1525
public static BinaryExpression AddAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
1546
private static void ValidateOpAssignConversionLambda(
LambdaExpression
conversion, Expression left, MethodInfo method, ExpressionType nodeType)
1603
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
1608
public static BinaryExpression AddAssignChecked(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
1734
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
1739
public static BinaryExpression SubtractAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
1792
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
1797
public static BinaryExpression SubtractAssignChecked(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
1922
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
1927
public static BinaryExpression DivideAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2016
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2021
public static BinaryExpression ModuloAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2110
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2115
public static BinaryExpression MultiplyAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2168
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2173
public static BinaryExpression MultiplyAssignChecked(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2315
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2320
public static BinaryExpression LeftShiftAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2411
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2416
public static BinaryExpression RightShiftAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2506
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2511
public static BinaryExpression AndAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2600
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2605
public static BinaryExpression OrAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2694
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2699
public static BinaryExpression ExclusiveOrAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
2810
/// <param name="conversion">A <see cref="
LambdaExpression
"/> to set the <see cref="BinaryExpression.Conversion"/> property equal to.</param>
2815
public static BinaryExpression PowerAssign(Expression left, Expression right, MethodInfo? method,
LambdaExpression
? conversion)
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
11
internal readonly Dictionary<
LambdaExpression
, BoundConstants> Constants = new Dictionary<
LambdaExpression
, BoundConstants>();
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
484
if (scope is
LambdaExpression
lambda)
502
if (s.Node is
LambdaExpression
lambda)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
163
if (
LambdaExpression
.CanCompileToIL)
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (1)
243
private void AddReturnLabel(
LambdaExpression
lambda)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (5)
55
private readonly
LambdaExpression
_lambda;
69
private LambdaCompiler(AnalyzedTree tree,
LambdaExpression
lambda)
140
LambdaExpression
lambda,
178
internal static Delegate Compile(
LambdaExpression
lambda)
217
private static AnalyzedTree AnalyzeLambda(ref
LambdaExpression
lambda)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (5)
186
if (typeof(
LambdaExpression
).IsAssignableFrom(expr.Type))
189
expr = Expression.Call(expr,
LambdaExpression
.GetCompileMethod(expr.Type));
197
LambdaExpression
lambda = invoke.LambdaOperand!;
775
LambdaExpression
node = (
LambdaExpression
)expr;
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (2)
126
private void EmitDelegateConstruction(
LambdaExpression
lambda)
156
private static Type[] GetParameterTypes(
LambdaExpression
lambda, Type firstType)
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
34
Debug.Assert(typeof(
LambdaExpression
).IsAssignableFrom(quote.Type));
System\Linq\Expressions\Compiler\StackSpiller.cs (7)
90
internal static
LambdaExpression
AnalyzeLambda(
LambdaExpression
lambda)
237
(
LambdaExpression
)conversion.Node
276
(
LambdaExpression
?)cr[2]) :
319
var
node = (
LambdaExpression
)expr;
502
LambdaExpression
? lambda = node.LambdaOperand;
System\Linq\Expressions\Compiler\VariableBinder.cs (5)
25
internal static AnalyzedTree Bind(
LambdaExpression
lambda)
97
LambdaExpression
? lambda = node.LambdaOperand;
151
var
lambda = node as
LambdaExpression
;
274
if (scope.Node is
LambdaExpression
lambda)
System\Linq\Expressions\DebugViewWriter.cs (7)
37
private Queue<
LambdaExpression
>? _lambdas;
42
private Dictionary<
LambdaExpression
, int>? _lambdaIds;
97
private int GetLambdaId(
LambdaExpression
le)
128
if (node is
LambdaExpression
lambda)
402
_lambdas ??= new Queue<
LambdaExpression
>();
1168
private void WriteLambda(
LambdaExpression
lambda)
1181
private string GetLambdaName(
LambdaExpression
lambda)
System\Linq\Expressions\Expression.cs (1)
32
private static CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>>? s_lambdaFactories;
System\Linq\Expressions\Expression.DebuggerProxy.cs (3)
23
public
LambdaExpression
? Conversion => _node.Conversion;
219
private readonly
LambdaExpression
_node;
221
public LambdaExpressionProxy(
LambdaExpression
node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
309
public LightDelegateCreator CompileTop(
LambdaExpression
node)
2576
var
node = (
LambdaExpression
)expr;
2668
if (typeof(
LambdaExpression
).IsAssignableFrom(node.Expression.Type))
2670
MethodInfo compMethod =
LambdaExpression
.GetCompileMethod(node.Expression.Type);
System\Linq\Expressions\Interpreter\LightDelegateCreator.cs (2)
14
private readonly
LambdaExpression
_lambda;
16
internal LightDelegateCreator(Interpreter interpreter,
LambdaExpression
lambda)
System\Linq\Expressions\InvocationExpression.cs (3)
112
internal
LambdaExpression
? LambdaOperand
117
? (
LambdaExpression
)((UnaryExpression)Expression).Operand
118
: (Expression as
LambdaExpression
);
System\Linq\Expressions\LambdaExpression.cs (125)
15
/// Creates a <see cref="
LambdaExpression
"/> node.
122
Debug.Assert(lambdaExpressionType.IsAssignableTo(typeof(
LambdaExpression
)));
124
if (lambdaExpressionType == typeof(
LambdaExpression
))
127
return typeof(
LambdaExpression
).GetMethod("Compile", Type.EmptyTypes)!;
181
internal abstract
LambdaExpression
Accept(Compiler.StackSpiller spiller);
250
/// <param name="body">The <see cref="
LambdaExpression
.Body" /> property of the result.</param>
251
/// <param name="parameters">The <see cref="
LambdaExpression
.Parameters" /> property of the result.</param>
302
internal override
LambdaExpression
Accept(Compiler.StackSpiller spiller)
612
internal static
LambdaExpression
CreateLambda(Type delegateType, Expression body, string? name, bool tailCall, ReadOnlyCollection<ParameterExpression> parameters)
617
Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>? fastPath;
618
CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>>? factories =
619
s_lambdaFactories ??= new CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>>(50);
624
if (
LambdaExpression
.CanCompileToIL)
635
return (
LambdaExpression
)create.Invoke(null, new object?[] { body, name, tailCall, parameters })!;
638
factories[delegateType] = fastPath = (Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>)create.CreateDelegate(typeof(Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>,
LambdaExpression
>));
648
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
649
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
650
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
660
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
662
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
663
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
673
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
674
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
675
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
685
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
687
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
688
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
698
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
699
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
701
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
711
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
713
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
715
/// <returns>An <see cref="Expression{TDelegate}"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
720
if (
LambdaExpression
.CanCompileToIL)
731
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
733
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
734
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
735
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
737
public static
LambdaExpression
Lambda(Expression body, params ParameterExpression[]? parameters)
743
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
745
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
747
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
748
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
750
public static
LambdaExpression
Lambda(Expression body, bool tailCall, params ParameterExpression[]? parameters)
756
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
758
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
759
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
760
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
762
public static
LambdaExpression
Lambda(Expression body, IEnumerable<ParameterExpression>? parameters)
768
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
770
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
772
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
773
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
775
public static
LambdaExpression
Lambda(Expression body, bool tailCall, IEnumerable<ParameterExpression>? parameters)
781
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
783
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
784
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
786
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
787
public static
LambdaExpression
Lambda(Type delegateType, Expression body, params ParameterExpression[]? parameters)
793
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
795
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
797
/// <param name="parameters">An array that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
799
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
800
public static
LambdaExpression
Lambda(Type delegateType, Expression body, bool tailCall, params ParameterExpression[]? parameters)
806
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
808
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
809
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
811
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
812
public static
LambdaExpression
Lambda(Type delegateType, Expression body, IEnumerable<ParameterExpression>? parameters)
818
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
820
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
822
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
824
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
825
public static
LambdaExpression
Lambda(Type delegateType, Expression body, bool tailCall, IEnumerable<ParameterExpression>? parameters)
831
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
833
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
834
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
836
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
838
public static
LambdaExpression
Lambda(Expression body, string? name, IEnumerable<ParameterExpression>? parameters)
844
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
846
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
849
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
850
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
852
public static
LambdaExpression
Lambda(Expression body, string? name, bool tailCall, IEnumerable<ParameterExpression>? parameters)
882
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
884
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
885
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
888
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
889
public static
LambdaExpression
Lambda(Type delegateType, Expression body, string? name, IEnumerable<ParameterExpression>? parameters)
898
/// Creates a <see cref="
LambdaExpression
"/> by first constructing a delegate type.
901
/// <param name="body">An <see cref="Expression"/> to set the <see cref="
LambdaExpression
.Body"/> property equal to.</param>
904
/// <param name="parameters">An <see cref="IEnumerable{T}"/> that contains <see cref="ParameterExpression"/> objects to use to populate the <see cref="
LambdaExpression
.Parameters"/> collection.</param>
905
/// <returns>A <see cref="
LambdaExpression
"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.Lambda"/> and the <see cref="
LambdaExpression
.Body"/> and <see cref="
LambdaExpression
.Parameters"/> properties set to the specified values.</returns>
906
public static
LambdaExpression
Lambda(Type delegateType, Expression body, string? name, bool tailCall, IEnumerable<ParameterExpression>? parameters)
System\Linq\Expressions\MethodCallExpression.cs (1)
1363
!(TypeUtils.IsSameOrSubclass(typeof(
LambdaExpression
), pType) && pType.IsAssignableFrom(arg.GetType())))
System\Linq\Expressions\UnaryExpression.cs (2)
836
LambdaExpression
? lambda = expression as
LambdaExpression
;
System\Runtime\CompilerServices\CallSite.cs (1)
289
if (System.Linq.Expressions.
LambdaExpression
.CanCompileToIL
System\Runtime\CompilerServices\DebugInfoGenerator.cs (2)
33
public abstract void MarkSequencePoint(
LambdaExpression
method, int ilOffset, DebugInfoExpression sequencePoint);
35
internal virtual void MarkSequencePoint(
LambdaExpression
method, MethodBase methodBase, ILGenerator ilg, DebugInfoExpression sequencePoint)
System.ServiceModel.Primitives (1)
System\IdentityModel\CryptoHelper.cs (1)
309
Linq.Expressions.
LambdaExpression
creationFunction = Linq.Expressions.Expression.Lambda<Func<object>>(algorithmCreationExpression);