1 type derived from LambdaExpression
System.Linq.Expressions (1)
System\Linq\Expressions\LambdaExpression.cs (1)
202public class Expression<TDelegate> : LambdaExpression
330 references to LambdaExpression
Microsoft.AspNetCore.Components.Forms (4)
FieldIdentifier.cs (2)
129var modelLambda = Expression.Lambda(typeof(Func<object?>), memberExpression.Expression); 204var methodCallObjectLambda = Expression.Lambda(typeof(Func<object?>), methodCallExpression!);
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
33public static string FormatLambda(LambdaExpression expression) 38public static string FormatLambda(LambdaExpression expression, string? prefix = null)
Microsoft.AspNetCore.Components.Forms.Tests (1)
FieldIdentifierTest.cs (1)
151LambdaExpression expression = () => model.StringProperty;
Microsoft.AspNetCore.Components.QuickGrid (4)
Columns\GridSort.cs (4)
20private (LambdaExpression, bool) _firstExpression; 21private List<(LambdaExpression, bool)>? _thenExpressions; 26internal GridSort(Func<IQueryable<TGridItem>, bool, IOrderedQueryable<TGridItem>> first, (LambdaExpression, bool) firstExpression) 136private static string ToPropertyName(LambdaExpression expression)
Microsoft.AspNetCore.Components.Web (11)
Forms\Editor.cs (1)
42protected string NameFor(LambdaExpression expression) => _value!.GetFieldName(expression);
Forms\HtmlFieldPrefix.cs (8)
8internal class HtmlFieldPrefix(LambdaExpression initial) 10private readonly LambdaExpression[] _rest = Array.Empty<LambdaExpression>(); 12internal HtmlFieldPrefix(LambdaExpression expression, params LambdaExpression[] rest) 18public HtmlFieldPrefix Combine(LambdaExpression other) 22var expressions = new LambdaExpression[length]; 33public string GetFieldName(LambdaExpression expression)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
33public static string FormatLambda(LambdaExpression expression) 38public static string FormatLambda(LambdaExpression expression, string? prefix = null)
Microsoft.AspNetCore.Components.Web.Tests (12)
Forms\HtmlFieldPrefixTest.cs (12)
15LambdaExpression parent = () => person.Children[0].BillingAddress; 16LambdaExpression valueExpression = () => value.City; 32LambdaExpression parent = () => person.Children[0]; 33LambdaExpression child = () => value2.Children[1].BillingAddress; 34LambdaExpression valueExpression = () => value.City; 49LambdaExpression parent = () => person.BillingAddress; 50LambdaExpression valueExpression = () => value.City; 65LambdaExpression parent = () => person.Nicknames; 66LambdaExpression valueExpression = () => value[0]; 82LambdaExpression parent = () => person.Children; 83LambdaExpression childrenExpression = () => children[0].Nicknames; 84LambdaExpression valueExpression = () => value[1];
Microsoft.AspNetCore.Http.Extensions (4)
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&lt;unit&gt;</c> or <c>ValueTask&lt;unit&gt;</c> 120/// contains a <see cref="LambdaExpression"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
737var lambda = Expression.Lambda(Expression.Block(), unnamedParameter);
Microsoft.AspNetCore.Mvc.Core (4)
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&lt;unit&gt;</c> or <c>ValueTask&lt;unit&gt;</c> 120/// contains a <see cref="LambdaExpression"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
ExpressionHelper.cs (4)
16public static string GetUncachedExpressionText(LambdaExpression expression) 19public static string GetExpressionText(LambdaExpression expression, ConcurrentDictionary<LambdaExpression, string> expressionTextCache) 200LambdaExpression parentExpression)
LambdaExpressionComparer.cs (4)
10internal sealed class LambdaExpressionComparer : IEqualityComparer<LambdaExpression> 14public bool Equals(LambdaExpression lambdaExpression1, LambdaExpression lambdaExpression2) 81public int GetHashCode(LambdaExpression lambdaExpression)
ModelExpressionProvider.cs (2)
16private readonly ConcurrentDictionary<LambdaExpression, string> _expressionTextCache; 27_expressionTextCache = new ConcurrentDictionary<LambdaExpression, string>(LambdaExpressionComparer.Instance);
ModelStateDictionaryExtensions.cs (1)
146private static string GetExpressionText(LambdaExpression expression)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (25)
ExpressionHelperTest.cs (25)
11private readonly ConcurrentDictionary<LambdaExpression, string> _expressionTextCache = new ConcurrentDictionary<LambdaExpression, string>(LambdaExpressionComparer.Instance); 13public static TheoryData<LambdaExpression, string> ExpressionAndTexts 25var data = new TheoryData<LambdaExpression, string> 181public static TheoryData<LambdaExpression> CachedExpressions 188return new TheoryData<LambdaExpression> 201public static TheoryData<LambdaExpression> IndexerExpressions 209return new TheoryData<LambdaExpression> 220public static TheoryData<LambdaExpression> UnsupportedExpressions 227return new TheoryData<LambdaExpression> 242public static TheoryData<LambdaExpression, LambdaExpression> EquivalentExpressions 249return new TheoryData<LambdaExpression, LambdaExpression> 286public static TheoryData<LambdaExpression, LambdaExpression> NonEquivalentExpressions 295return new TheoryData<LambdaExpression, LambdaExpression> 367public void GetExpressionText_ReturnsExpectedExpressionText(LambdaExpression expression, string expressionText) 378public void GetExpressionText_CachesExpression(LambdaExpression expression) 393public void GetExpressionText_DoesNotCacheIndexerOrUnsupportedExpression(LambdaExpression expression) 408public void GetExpressionText_CacheEquivalentExpressions(LambdaExpression expression1, LambdaExpression expression2) 422public void GetExpressionText_CheckNonEquivalentExpressions(LambdaExpression expression1, LambdaExpression expression2)
Microsoft.AspNetCore.OpenApi (4)
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&lt;unit&gt;</c> or <c>ValueTask&lt;unit&gt;</c> 120/// contains a <see cref="LambdaExpression"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
76var lambda = Expression.Lambda(Expression.Block(), unnamedParameter);
Microsoft.AspNetCore.Shared.Tests (4)
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&lt;unit&gt;</c> or <c>ValueTask&lt;unit&gt;</c> 120/// contains a <see cref="LambdaExpression"/> for converting to the corresponding void-returning awaitable type;
Microsoft.AspNetCore.SignalR.Core (4)
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&lt;unit&gt;</c> or <c>ValueTask&lt;unit&gt;</c> 120/// contains a <see cref="LambdaExpression"/> for converting to the corresponding void-returning awaitable type;
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Converters\SumConverter.cs (2)
164var expression = (LambdaExpression)expressionLambdaMethod.Invoke(null, [typeof(StjReader<>).MakeGenericType(constructor.DeclaringType), body, new[] { param1, param2 }])!;
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
34private static readonly LambdaExpression CaptureDisposable = Expression.Lambda(
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)
126var lambdaExpression = (LambdaExpression)parameter;
System.Composition.Convention (2)
System\Composition\Convention\PartConventionBuilderOfT.cs (2)
188var 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)
224Type quoteable = typeof(LambdaExpression); 312public static void ValidateArgumentCount(this LambdaExpression lambda)
System\Linq\Expressions\BinaryExpression.cs (46)
92public BinaryExpression Update(Expression left, LambdaExpression? conversion, Expression right) 165LambdaExpression? conversion = GetConversion(); 198LambdaExpression? conversion = GetConversion(); 257LambdaExpression? conversion = GetConversion(); 275public LambdaExpression? Conversion => GetConversion(); 277internal virtual LambdaExpression? GetConversion() => null; 313internal static BinaryExpression Create(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo? method, LambdaExpression? conversion) 513private readonly LambdaExpression _conversion; 515internal CoalesceConversionBinaryExpression(Expression left, Expression right, LambdaExpression conversion) 521internal override LambdaExpression GetConversion() => _conversion; 533private readonly LambdaExpression _conversion; 535internal OpAssignMethodConversionBinaryExpression(ExpressionType nodeType, Expression left, Expression right, Type type, MethodInfo method, LambdaExpression conversion) 541internal override LambdaExpression GetConversion() => _conversion; 662private static BinaryExpression GetMethodBasedAssignOperator(ExpressionType binaryType, Expression left, Expression right, MethodInfo method, LambdaExpression? conversion, bool liftToNull) 695private static BinaryExpression GetUserDefinedAssignOperatorOrThrow(ExpressionType binaryType, string name, Expression left, Expression right, LambdaExpression? conversion, bool liftToNull) 900public static BinaryExpression MakeBinary(ExpressionType binaryType, Expression left, Expression right, bool liftToNull, MethodInfo? method, LambdaExpression? conversion) => 1376public 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> 1525public static BinaryExpression AddAssign(Expression left, Expression right, MethodInfo? method, LambdaExpression? conversion) 1546private 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> 1608public 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> 1739public 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> 1797public 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> 1927public 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> 2021public 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> 2115public 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> 2173public 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> 2320public 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> 2416public 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> 2511public 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> 2605public 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> 2699public 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> 2815public static BinaryExpression PowerAssign(Expression left, Expression right, MethodInfo? method, LambdaExpression? conversion)
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
11internal readonly Dictionary<LambdaExpression, BoundConstants> Constants = new Dictionary<LambdaExpression, BoundConstants>();
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
484if (scope is LambdaExpression lambda) 502if (s.Node is LambdaExpression lambda)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
163if (LambdaExpression.CanCompileToIL)
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (1)
243private void AddReturnLabel(LambdaExpression lambda)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (5)
55private readonly LambdaExpression _lambda; 69private LambdaCompiler(AnalyzedTree tree, LambdaExpression lambda) 140LambdaExpression lambda, 178internal static Delegate Compile(LambdaExpression lambda) 217private static AnalyzedTree AnalyzeLambda(ref LambdaExpression lambda)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (5)
186if (typeof(LambdaExpression).IsAssignableFrom(expr.Type)) 189expr = Expression.Call(expr, LambdaExpression.GetCompileMethod(expr.Type)); 197LambdaExpression lambda = invoke.LambdaOperand!; 775LambdaExpression node = (LambdaExpression)expr;
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (2)
126private void EmitDelegateConstruction(LambdaExpression lambda) 156private static Type[] GetParameterTypes(LambdaExpression lambda, Type firstType)
System\Linq\Expressions\Compiler\LambdaCompiler.Unary.cs (1)
34Debug.Assert(typeof(LambdaExpression).IsAssignableFrom(quote.Type));
System\Linq\Expressions\Compiler\StackSpiller.cs (7)
90internal static LambdaExpression AnalyzeLambda(LambdaExpression lambda) 237(LambdaExpression)conversion.Node 276(LambdaExpression?)cr[2]) : 319var node = (LambdaExpression)expr; 502LambdaExpression? lambda = node.LambdaOperand;
System\Linq\Expressions\Compiler\VariableBinder.cs (5)
25internal static AnalyzedTree Bind(LambdaExpression lambda) 97LambdaExpression? lambda = node.LambdaOperand; 151var lambda = node as LambdaExpression; 274if (scope.Node is LambdaExpression lambda)
System\Linq\Expressions\DebugViewWriter.cs (7)
37private Queue<LambdaExpression>? _lambdas; 42private Dictionary<LambdaExpression, int>? _lambdaIds; 97private int GetLambdaId(LambdaExpression le) 128if (node is LambdaExpression lambda) 402_lambdas ??= new Queue<LambdaExpression>(); 1168private void WriteLambda(LambdaExpression lambda) 1181private string GetLambdaName(LambdaExpression lambda)
System\Linq\Expressions\Expression.cs (1)
32private static volatile CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>, LambdaExpression>>? s_lambdaFactories;
System\Linq\Expressions\Expression.DebuggerProxy.cs (3)
23public LambdaExpression? Conversion => _node.Conversion; 219private readonly LambdaExpression _node; 221public LambdaExpressionProxy(LambdaExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
309public LightDelegateCreator CompileTop(LambdaExpression node) 2576var node = (LambdaExpression)expr; 2668if (typeof(LambdaExpression).IsAssignableFrom(node.Expression.Type)) 2670MethodInfo compMethod = LambdaExpression.GetCompileMethod(node.Expression.Type);
System\Linq\Expressions\Interpreter\LightDelegateCreator.cs (2)
14private readonly LambdaExpression _lambda; 16internal LightDelegateCreator(Interpreter interpreter, LambdaExpression lambda)
System\Linq\Expressions\InvocationExpression.cs (3)
112internal LambdaExpression? LambdaOperand 117? (LambdaExpression)((UnaryExpression)Expression).Operand 118: (Expression as LambdaExpression);
System\Linq\Expressions\LambdaExpression.cs (125)
15/// Creates a <see cref="LambdaExpression"/> node. 122Debug.Assert(lambdaExpressionType.IsAssignableTo(typeof(LambdaExpression))); 124if (lambdaExpressionType == typeof(LambdaExpression)) 127return typeof(LambdaExpression).GetMethod("Compile", Type.EmptyTypes)!; 181internal 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> 302internal override LambdaExpression Accept(Compiler.StackSpiller spiller) 612internal static LambdaExpression CreateLambda(Type delegateType, Expression body, string? name, bool tailCall, ReadOnlyCollection<ParameterExpression> parameters) 617Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>, LambdaExpression>? fastPath; 618CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>, LambdaExpression>>? factories = 619s_lambdaFactories ??= new CacheDict<Type, Func<Expression, string?, bool, ReadOnlyCollection<ParameterExpression>, LambdaExpression>>(50); 624if (LambdaExpression.CanCompileToIL) 635return (LambdaExpression)create.Invoke(null, new object?[] { body, name, tailCall, parameters })!; 638factories[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> 720if (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> 737public 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> 750public 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> 762public 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> 775public 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> 787public 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> 800public 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> 812public 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> 825public 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> 838public 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> 852public 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> 889public 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> 906public 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)
836LambdaExpression? lambda = expression as LambdaExpression;
System\Runtime\CompilerServices\CallSite.cs (1)
289if (System.Linq.Expressions.LambdaExpression.CanCompileToIL
System\Runtime\CompilerServices\DebugInfoGenerator.cs (2)
33public abstract void MarkSequencePoint(LambdaExpression method, int ilOffset, DebugInfoExpression sequencePoint); 35internal virtual void MarkSequencePoint(LambdaExpression method, MethodBase methodBase, ILGenerator ilg, DebugInfoExpression sequencePoint)