117 references to Lambda
Microsoft.AspNetCore.Components.Forms (2)
FieldIdentifier.cs (1)
194var lambda = Expression.Lambda<Func<object, object>>(expression, parameter);
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
280var replacedExpression = Expression.Lambda<Func<object, TResult>>(replacedMemberExpression, parameterExpression);
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
280var replacedExpression = Expression.Lambda<Func<object, TResult>>(replacedMemberExpression, parameterExpression);
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UseMiddlewareExtensions.cs (1)
323var lambda = Expression.Lambda<Func<T, HttpContext, IServiceProvider, Task>>(body, instanceArg, httpContextArg, providerArg);
Microsoft.AspNetCore.Http.Extensions (17)
RequestDelegateFactory.cs (8)
472var filteredInvocation = Expression.Lambda<EndpointFilterDelegate>( 1258var continuation = Expression.Lambda<Func<object?, HttpContext, object?[], Task>>( 1278return Expression.Lambda<Func<object?, HttpContext, Task>>( 1306var continuation = Expression.Lambda<Func<object?, HttpContext, object?, object?[], Task>>( 1343var continuation = Expression.Lambda<Func<object?, HttpContext, object?, Task>>( 1441var continuation = Expression.Lambda<Func<object?, HttpContext, object?, object?[], Task>>( 1475var continuation = Expression.Lambda<Func<object?, HttpContext, object?, Task>>( 1985var bindAsyncDelegate = Expression.Lambda<Func<HttpContext, ValueTask<object?>>>(bindAsyncMethod.Expression, HttpContextExpr).Compile();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (9)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 282var getAwaiterFunc = Expression.Lambda<Func<object, object>>( 293var isCompletedFunc = Expression.Lambda<Func<object, bool>>( 308getResultFunc = Expression.Lambda<Func<object, object>>( 321getResultFunc = Expression.Lambda<Func<object, object>>( 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.JsonPatch (1)
JsonPatchDocumentOfT.cs (1)
733var lambda = Expression.Lambda<Func<object, object>>(converted, fakeParameter);
Microsoft.AspNetCore.Mvc.Core (15)
ModelBinding\Binders\CollectionModelBinder.cs (1)
253.Lambda<Func<object>>(Expression.New(targetType))
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
215.Lambda<Func<object>>(Expression.New(bindingContext.ModelType))
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
504.Lambda<Func<object>>(Expression.New(bindingContext.ModelType))
ModelBinding\Binders\TryParseModelBinder.cs (1)
139return Expression.Lambda<Func<ValueProviderResult, ModelBindingContext, object?>>(expression, new[] { ValueProviderResultExpression, BindingContextExpression }).Compile();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
258var factoryLamda = Expression.Lambda<Func<object?[], object>>(factoryExpressionBody, args);
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
74Expression.Lambda<Func<object, IEnumerator>>(
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (9)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 282var getAwaiterFunc = Expression.Lambda<Func<object, object>>( 293var isCompletedFunc = Expression.Lambda<Func<object, bool>>( 308getResultFunc = Expression.Lambda<Func<object, object>>( 321getResultFunc = Expression.Lambda<Func<object, object>>( 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\DefaultRazorPageFactoryProvider.cs (1)
52.Lambda<Func<IRazorPage>>(objectInitializeExpression)
Microsoft.AspNetCore.Mvc.RazorPages (5)
Infrastructure\DefaultPageActivatorProvider.cs (1)
75.Lambda<Func<PageContext, ViewContext, object>>(newExpression, parameter1, parameter2)
Infrastructure\ExecutorFactory.cs (4)
87_thunk = Expression.Lambda<Func<object, object?[]?, Task>>( 117_thunk = Expression.Lambda<Func<object, object?[]?, Task<object>>>( 153_thunk = Expression.Lambda<Action<object, object?[]?>>( 179_thunk = Expression.Lambda<Func<object, object?[]?, IActionResult?>>(
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
CachedExpressionCompiler.cs (1)
179var replacementExpression = Expression.Lambda<Func<object, TResult>>(
ExpressionHelper.cs (1)
215var lambda = Expression.Lambda<Func<object, object>>(converted, fakeParameter);
ViewDataDictionaryFactory.cs (2)
24Expression.Lambda<Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary>>( 44Expression.Lambda<Func<ViewDataDictionary, ViewDataDictionary>>(
Microsoft.AspNetCore.OpenApi (9)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (9)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 282var getAwaiterFunc = Expression.Lambda<Func<object, object>>( 293var isCompletedFunc = Expression.Lambda<Func<object, bool>>( 308getResultFunc = Expression.Lambda<Func<object, object>>( 321getResultFunc = Expression.Lambda<Func<object, object>>( 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (9)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 282var getAwaiterFunc = Expression.Lambda<Func<object, object>>( 293var isCompletedFunc = Expression.Lambda<Func<object, bool>>( 308getResultFunc = Expression.Lambda<Func<object, object>>( 321getResultFunc = Expression.Lambda<Func<object, object>>( 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.SignalR.Core (10)
Internal\HubMethodDescriptor.cs (1)
246var lambda = Expression.Lambda<Func<object, CancellationToken, IAsyncEnumerator<object?>>>(methodCall, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (9)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 282var getAwaiterFunc = Expression.Lambda<Func<object, object>>( 293var isCompletedFunc = Expression.Lambda<Func<object, bool>>( 308getResultFunc = Expression.Lambda<Func<object, object>>( 321getResultFunc = Expression.Lambda<Func<object, object>>( 335var onCompletedFunc = Expression.Lambda<Action<object, Action>>( 351unsafeOnCompletedFunc = Expression.Lambda<Action<object, Action>>( 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
Lightup\LightupHelpers.cs (7)
93Expression.Lambda<Func<T, TResult>>( 145Expression.Lambda<Action<T>>( 217Expression.Lambda<Action<T, TArg>>( 273Expression.Lambda<Func<T, TResult>>( 329Expression.Lambda<Func<T, TResult>>( 399Expression.Lambda<Func<T, TArg, TResult>>( 489Expression.Lambda<Func<T, TArg0, TArg1, TResult>>(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\StringEnumConverter.cs (1)
35CreateEnum = Expression.Lambda<Func<string, TStringEnumType>>(body, param).Compile();
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
287var memberEquivalence = Expression.Lambda<Func<MemberInfo, MemberInfo, bool>>(
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
HelperFactory.cs (2)
162var result = Expression.Lambda<HandlebarsBlockHelper>( 197var result = Expression.Lambda<HandlebarsHelper>(
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (2)
82return Expression.Lambda<Func<ServiceProviderEngineScope, object>>( 91return Expression.Lambda<Func<ServiceProviderEngineScope, object>>(
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ActivatorUtilities.cs (2)
294var factoryLambda = Expression.Lambda<ObjectFactory>( 327var factoryLambda = Expression.Lambda<ObjectFactory<T>>(
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.vb (1)
357Dim memberEquivalence As Func(Of MethodBase, MethodBase, Boolean) = Expression.Lambda(Of Func(Of MethodBase, MethodBase, Boolean))(
PresentationFramework (10)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (10)
371return Expression.Lambda<Func<T, object>>( 380return Expression.Lambda<Func<object, object>>( 392return Expression.Lambda<Action<object, IntPtr>>( 401return Expression.Lambda<Func<object, T>>( 410return Expression.Lambda<Func<T, object>>( 421return Expression.Lambda<Action<T, IntPtr>>( 429return Expression.Lambda<Action<object>>( 886return Expression.Lambda<Func<IntPtr, T>>( 894return Expression.Lambda<Func<T, IObjectReference>>( 904return Expression.Lambda<Func<IObjectReference, IObjectReference>>(
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ConstraintServices.cs (2)
52Expression<Func<ExportDefinition, bool>> constraint = Expression.Lambda<Func<ExportDefinition, bool>>(constraintBody, parameter); 214Expression.Lambda<Func<ExportDefinition, bool>>(
System.Composition.Hosting (2)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (2)
37return Expression.Lambda<Func<IDictionary<string, object>, TMetadata>>( 68return Expression.Lambda<Func<IDictionary<string, object>, TMetadata>>(
System.Composition.TypedParts (4)
System\Composition\TypedParts\ActivationFeatures\OnImportsSatisfiedFeature.cs (1)
54var call = Expression.Lambda<Action<object>>(
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
103var setAction = Expression.Lambda<Func<object, LifetimeContext, CompositionOperation, object>>(
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
198.Lambda<CompositeActivator>(body, contextParam, operationParm)
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (1)
27var activator = Expression.Lambda<CompositeActivator>(
System.Linq.Expressions (7)
System\Linq\Expressions\LambdaExpression.cs (7)
380return Expression.Lambda<TDelegate>(body, parameters); 426return Expression.Lambda<TDelegate>(body, parameters); 429return Expression.Lambda<TDelegate>(body, ExpressionUtils.ReturnObject<ParameterExpression>(_par0)); 488return Expression.Lambda<TDelegate>(body, parameters); 491return Expression.Lambda<TDelegate>(body, ExpressionUtils.ReturnObject<ParameterExpression>(_par0), _par1); 556return Expression.Lambda<TDelegate>(body, parameters); 559return Expression.Lambda<TDelegate>(body, ExpressionUtils.ReturnObject<ParameterExpression>(_par0), _par1, _par2);
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
2079setTypedDelegate = Expression.Lambda<Action<TObj, TParam>>(assignExpr, objectParam, valueParam).Compile();