5 types derived from Expression
System.Linq.Expressions (5)
System\Linq\Expressions\LambdaExpression.cs (5)
356internal sealed class Expression0<TDelegate> : Expression<TDelegate> 384internal sealed class Expression1<TDelegate> : Expression<TDelegate> 433internal sealed class Expression2<TDelegate> : Expression<TDelegate> 495internal sealed class Expression3<TDelegate> : Expression<TDelegate> 563internal class ExpressionN<TDelegate> : Expression<TDelegate>
1021 references to Expression
Metrics (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Metrics.Legacy (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (1)
564var lambda = Expression.Lambda<CompiledComplexTypeConverter<T>.ConverterDelegate>(
Microsoft.AspNetCore.Components.Forms (11)
EditContext.cs (3)
178public IEnumerable<string> GetValidationMessages(Expression<Func<object>> accessor) 195public bool IsModified(Expression<Func<object>> accessor) 210public bool IsValid(Expression<Func<object>> accessor)
FieldIdentifier.cs (3)
31public static FieldIdentifier Create<TField>(Expression<Func<TField>> accessor) 95private static void ParseAccessor<T>(Expression<Func<T>> accessor, out object model, out string fieldName) 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);
ValidationMessageStore.cs (4)
38public void Add(Expression<Func<object>> accessor, string message) 54public void Add(Expression<Func<object>> accessor, IEnumerable<string> messages) 74public IEnumerable<string> this[Expression<Func<object>> accessor] 94public void Clear(Expression<Func<object>> accessor)
Microsoft.AspNetCore.Components.Forms.Tests (1)
FieldIdentifierTest.cs (1)
184Expression<Func<object>> accessor = () => model.IntProperty;
Microsoft.AspNetCore.Components.QuickGrid (6)
Columns\GridSort.cs (4)
40public static GridSort<TGridItem> ByAscending<U>(Expression<Func<TGridItem, U>> expression) 50public static GridSort<TGridItem> ByDescending<U>(Expression<Func<TGridItem, U>> expression) 60public GridSort<TGridItem> ThenAscending<U>(Expression<Func<TGridItem, U>> expression) 77public GridSort<TGridItem> ThenDescending<U>(Expression<Func<TGridItem, U>> expression)
Columns\PropertyColumn.cs (2)
16private Expression<Func<TGridItem, TProp>>? _lastAssignedProperty; 23[Parameter, EditorRequired] public Expression<Func<TGridItem, TProp>> Property { get; set; } = default!;
Microsoft.AspNetCore.Components.Web (6)
Forms\EditContextFieldClassExtensions.cs (1)
23public static string FieldCssClass<TField>(this EditContext editContext, Expression<Func<TField>> accessor)
Forms\Editor.cs (1)
25[Parameter] public Expression<Func<T>> ValueExpression { get; set; } = default!;
Forms\InputBase.cs (1)
55[Parameter] public Expression<Func<TValue>>? ValueExpression { get; set; }
Forms\ValidationMessage.cs (2)
15private Expression<Func<TValue>>? _previousFieldAccessor; 29[Parameter] public Expression<Func<TValue>>? For { get; set; }
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (1)
280var replacedExpression = Expression.Lambda<Func<object, TResult>>(replacedMemberExpression, parameterExpression);
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\InputRadioTest.cs (1)
87private static RenderFragment RadioButtonsWithGroup(string name, Expression<Func<TestEnum>> valueExpression) => (builder) =>
Forms\TestInputHostComponent.cs (1)
20public Expression<Func<TValue>> ValueExpression { get; set; }
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 (10)
RequestDelegateFactory.cs (6)
188Expression<Func<HttpContext, object?>> targetFactory = (httpContext) => handler.Target; 317Expression<Func<HttpContext, object?>>? targetFactory = null) 357Expression<Func<EndpointFilterInvocationContext, ValueTask<object?>>> invokePipeline = (context) => filterPipeline(context); 413private static EndpointFilterDelegate? CreateFilterPipeline(MethodInfo methodInfo, Expression? targetExpression, RequestDelegateFactoryContext factoryContext, Expression<Func<HttpContext, object?>>? targetFactory) 2377private static MethodInfo GetMethodInfo<T>(Expression<T> expr) 2383private static MemberInfo GetMemberInfo<T>(Expression<T> expr)
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (1)
564var lambda = Expression.Lambda<CompiledComplexTypeConverter<T>.ConverterDelegate>(
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ParameterBindingMethodCacheTests.cs (2)
752private static ParameterInfo GetFirstParameter<T>(Expression<Action<T>> expr) 758private static ParameterInfo GetParameterAtIndex<T>(Expression<Action<T>> expr, int paramIndex)
Microsoft.AspNetCore.Http.Results.Tests (3)
ResultsTests.cs (3)
1700public void FactoryMethod_ReturnsCorrectResultType(Expression<Func<IResult>> expression, Type expectedReturnType) 1728private static IEnumerable<(Expression<Func<IResult>>, Type)> FactoryMethodsTuples { get; } = new List<(Expression<Func<IResult>>, Type)>
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (14)
SqlStoreOnlyUsersTestBase.cs (2)
44protected override Expression<Func<TUser, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 47protected override Expression<Func<TUser, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName);
SqlStoreTestBase.cs (4)
83protected override Expression<Func<TRole, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName; 85protected override Expression<Func<TUser, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 88protected override Expression<Func<TRole, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName); 90protected override Expression<Func<TUser, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName);
UserStoreTest.cs (4)
416protected override Expression<Func<IdentityUser, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 418protected override Expression<Func<IdentityRole, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName; 421protected override Expression<Func<IdentityRole, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName); 423protected override Expression<Func<IdentityUser, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName);
UserStoreWithGenericsTest.cs (4)
68protected override Expression<Func<IdentityUserWithGenerics, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 70protected override Expression<Func<MyIdentityRole, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName; 73protected override Expression<Func<IdentityUserWithGenerics, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName); 75protected override Expression<Func<MyIdentityRole, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName);
Microsoft.AspNetCore.Identity.InMemory.Test (6)
InMemoryStoreTest.cs (4)
52protected override Expression<Func<PocoUser, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 54protected override Expression<Func<PocoRole, bool>> RoleNameEqualsPredicate(string roleName) => r => r.Name == roleName; 56protected override Expression<Func<PocoUser, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName, StringComparison.Ordinal); 58protected override Expression<Func<PocoRole, bool>> RoleNameStartsWithPredicate(string roleName) => r => r.Name.StartsWith(roleName, StringComparison.Ordinal);
InMemoryUserStoreTest.cs (2)
42protected override Expression<Func<PocoUser, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName; 44protected override Expression<Func<PocoUser, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName, StringComparison.Ordinal);
Microsoft.AspNetCore.Identity.Specification.Tests (5)
IdentitySpecificationTestBase.cs (3)
114protected abstract Expression<Func<TRole, bool>> RoleNameEqualsPredicate(string roleName); 121protected abstract Expression<Func<TRole, bool>> RoleNameStartsWithPredicate(string roleName); 330Expression<Func<TRole, bool>> func = RoleNameStartsWithPredicate("CanQueryableRolesTest");
UserManagerSpecificationTests.cs (2)
131protected abstract Expression<Func<TUser, bool>> UserNameEqualsPredicate(string userName); 138protected abstract Expression<Func<TUser, bool>> UserNameStartsWithPredicate(string userName);
Microsoft.AspNetCore.JsonPatch (38)
JsonPatchDocumentOfT.cs (38)
53public JsonPatchDocument<TModel> Add<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 75Expression<Func<TModel, IList<TProp>>> path, 97public JsonPatchDocument<TModel> Add<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 116public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, TProp>> path) 132public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path, int position) 150public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path) 169public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 190public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path, 211public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 231public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 252public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path, 273public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 294Expression<Func<TModel, TProp>> from, 295Expression<Func<TModel, TProp>> path) 317Expression<Func<TModel, IList<TProp>>> from, 319Expression<Func<TModel, TProp>> path) 341Expression<Func<TModel, TProp>> from, 342Expression<Func<TModel, IList<TProp>>> path, 366Expression<Func<TModel, IList<TProp>>> from, 368Expression<Func<TModel, IList<TProp>>> path, 391Expression<Func<TModel, IList<TProp>>> from, 393Expression<Func<TModel, IList<TProp>>> path) 414Expression<Func<TModel, TProp>> from, 415Expression<Func<TModel, IList<TProp>>> path) 436Expression<Func<TModel, TProp>> from, 437Expression<Func<TModel, TProp>> path) 459Expression<Func<TModel, IList<TProp>>> from, 461Expression<Func<TModel, TProp>> path) 483Expression<Func<TModel, TProp>> from, 484Expression<Func<TModel, IList<TProp>>> path, 508Expression<Func<TModel, IList<TProp>>> from, 510Expression<Func<TModel, IList<TProp>>> path, 533Expression<Func<TModel, IList<TProp>>> from, 535Expression<Func<TModel, IList<TProp>>> path) 556Expression<Func<TModel, TProp>> from, 557Expression<Func<TModel, IList<TProp>>> path) 660internal string GetPath<TProp>(Expression<Func<TModel, TProp>> expr, string position) 733var lambda = Expression.Lambda<Func<object, object>>(converted, fakeParameter);
Microsoft.AspNetCore.JsonPatch.SystemTextJson (38)
JsonPatchDocumentOfT.cs (38)
54public JsonPatchDocument<TModel> Add<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 76Expression<Func<TModel, IList<TProp>>> path, 98public JsonPatchDocument<TModel> Add<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 117public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, TProp>> path) 133public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path, int position) 151public JsonPatchDocument<TModel> Remove<TProp>(Expression<Func<TModel, IList<TProp>>> path) 170public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 191public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path, 212public JsonPatchDocument<TModel> Replace<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 232public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, TProp>> path, TProp value) 253public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path, 274public JsonPatchDocument<TModel> Test<TProp>(Expression<Func<TModel, IList<TProp>>> path, TProp value) 295Expression<Func<TModel, TProp>> from, 296Expression<Func<TModel, TProp>> path) 318Expression<Func<TModel, IList<TProp>>> from, 320Expression<Func<TModel, TProp>> path) 342Expression<Func<TModel, TProp>> from, 343Expression<Func<TModel, IList<TProp>>> path, 367Expression<Func<TModel, IList<TProp>>> from, 369Expression<Func<TModel, IList<TProp>>> path, 392Expression<Func<TModel, IList<TProp>>> from, 394Expression<Func<TModel, IList<TProp>>> path) 415Expression<Func<TModel, TProp>> from, 416Expression<Func<TModel, IList<TProp>>> path) 437Expression<Func<TModel, TProp>> from, 438Expression<Func<TModel, TProp>> path) 460Expression<Func<TModel, IList<TProp>>> from, 462Expression<Func<TModel, TProp>> path) 484Expression<Func<TModel, TProp>> from, 485Expression<Func<TModel, IList<TProp>>> path, 509Expression<Func<TModel, IList<TProp>>> from, 511Expression<Func<TModel, IList<TProp>>> path, 534Expression<Func<TModel, IList<TProp>>> from, 536Expression<Func<TModel, IList<TProp>>> path) 557Expression<Func<TModel, TProp>> from, 558Expression<Func<TModel, IList<TProp>>> path) 661internal string GetPath<TProp>(Expression<Func<TModel, TProp>> expr, string position) 736var lambda = Expression.Lambda<Func<object, object>>(converted, fakeParameter);
Microsoft.AspNetCore.Mvc.Core (19)
ControllerBase.cs (2)
2607params Expression<Func<TModel, object?>>[] includeExpressions) 2684params Expression<Func<TModel, object?>>[] includeExpressions)
ModelBinding\DefaultPropertyFilterProvider.cs (3)
30public virtual IEnumerable<Expression<Func<TModel, object?>>>? PropertyIncludeExpressions => null; 48IEnumerable<Expression<Func<TModel, object?>>> includeExpressions) 50var expression = ModelBindingHelper.GetPropertyFilterExpression(includeExpressions.ToArray());
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
258var factoryLamda = Expression.Lambda<Func<object?[], object>>(factoryExpressionBody, args);
ModelBinding\ModelBindingHelper.cs (9)
85params Expression<Func<TModel, object?>>[] includeExpressions) 90var expression = GetPropertyFilterExpression(includeExpressions); 327public static Expression<Func<ModelMetadata, bool>> GetPropertyFilterExpression<TModel>( 328Expression<Func<TModel, object?>>[] expressions) 336var firstExpression = GetPredicateExpression(expressions[0]); 338foreach (var expression in expressions.Skip(1)) 340var predicate = GetPredicateExpression(expression); 349private static Expression<Func<ModelMetadata, bool>> GetPredicateExpression<TModel>( 350Expression<Func<TModel, object?>> expression)
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
73var expression =
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\ModelBindingHelperTest.cs (7)
339Expression<Func<User, object>> expression = m => m.Address; 352Expression<Func<User, object>> expression = m => m.Address.Street; 370Expression<Func<User, object>> expression = m => new Func<User>(() => m); 393public void GetPropertyName_ExpressionsOtherThanMemberAccess_Throws(Expression<Func<User, object>> expression) 412Expression<Func<User, object>> expression = m => someUser.Address; 428Expression<Func<List<User>, object>> expression = m => m[0]; 444Expression<Func<User, object>> expression = m => m._userId;
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
1355params Expression<Func<TModel, object?>>[] includeExpressions) 1430params Expression<Func<TModel, object?>>[] includeExpressions)
PageModel.cs (2)
260params Expression<Func<TModel, object?>>[] includeExpressions) 335params Expression<Func<TModel, object?>>[] includeExpressions)
Microsoft.AspNetCore.Mvc.ViewFeatures (90)
CachedExpressionCompiler.cs (9)
23Expression<Func<TModel, TResult>> expression) 43public static Func<TModel, object> Compile(Expression<Func<TModel, TResult>> expression) 107Expression<Func<TModel, TResult>> expression) 121Expression<Func<TModel, TResult>> expression, 138Expression<Func<TModel, TResult>> expression, 153Expression<Func<TModel, TResult>> expression, 179var replacementExpression = Expression.Lambda<Func<object, TResult>>( 192Expression<Func<TModel, TResult>> expression, 230var rewrittenExpression = Expression.Lambda<Func<TModel, object>>(body, expression.Parameters);
ExpressionHelper.cs (1)
215var lambda = Expression.Lambda<Func<object, object>>(converted, fakeParameter);
ExpressionMetadataProvider.cs (1)
15Expression<Func<TModel, TResult>> expression,
HtmlHelperOfT.cs (21)
92Expression<Func<TModel, bool>> expression, 107Expression<Func<TModel, TResult>> expression, 125Expression<Func<TModel, TResult>> expression, 141public string DisplayNameFor<TResult>(Expression<Func<TModel, TResult>> expression) 151Expression<Func<TModelItem, TResult>> expression) 163public string DisplayTextFor<TResult>(Expression<Func<TModel, TResult>> expression) 172Expression<Func<TModel, TResult>> expression, 189Expression<Func<TModel, TResult>> expression, 204public string IdFor<TResult>(Expression<Func<TModel, TResult>> expression) 213Expression<Func<TModel, TResult>> expression, 225Expression<Func<TModel, TResult>> expression, 238public string NameFor<TResult>(Expression<Func<TModel, TResult>> expression) 248Expression<Func<TModel, TResult>> expression, 263Expression<Func<TModel, TResult>> expression, 281Expression<Func<TModel, TResult>> expression, 294Expression<Func<TModel, TResult>> expression, 309private ModelExpression GetModelExpression<TResult>(Expression<Func<TModel, TResult>> expression) 319protected string GetExpressionName<TResult>(Expression<Func<TModel, TResult>> expression) 332protected ModelExplorer GetModelExplorer<TResult>(Expression<Func<TModel, TResult>> expression) 342Expression<Func<TModel, TResult>> expression, 359public string ValueFor<TResult>(Expression<Func<TModel, TResult>> expression, string format)
IModelExpressionProvider.cs (1)
24Expression<Func<TModel, TValue>> expression);
ModelExpressionProvider.cs (2)
37public string GetExpressionText<TModel, TValue>(Expression<Func<TModel, TValue>> expression) 47Expression<Func<TModel, TValue>> expression)
ModelStateDictionaryExtensions.cs (5)
27Expression<Func<TModel, object>> expression, 54Expression<Func<TModel, object>> expression, 76Expression<Func<TModel, object>> expression, 99Expression<Func<TModel, object>> expression) 116Expression<Func<TModel, object>> expression)
Rendering\HtmlHelperDisplayExtensions.cs (5)
233Expression<Func<TModel, TResult>> expression) 272Expression<Func<TModel, TResult>> expression, 308Expression<Func<TModel, TResult>> expression, 349Expression<Func<TModel, TResult>> expression, 390Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperDisplayNameExtensions.cs (1)
38Expression<Func<TModelItem, TResult>> expression)
Rendering\HtmlHelperEditorExtensions.cs (5)
230Expression<Func<TModel, TResult>> expression) 265Expression<Func<TModel, TResult>> expression, 301Expression<Func<TModel, TResult>> expression, 338Expression<Func<TModel, TResult>> expression, 379Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperInputExtensions.cs (9)
118Expression<Func<TModel, bool>> expression) 196Expression<Func<TModel, TResult>> expression) 262Expression<Func<TModel, TResult>> expression) 403Expression<Func<TModel, TResult>> expression, 551Expression<Func<TModel, TResult>> expression) 582Expression<Func<TModel, TResult>> expression, 616Expression<Func<TModel, TResult>> expression, 762Expression<Func<TModel, TResult>> expression) 794Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperLabelExtensions.cs (3)
51Expression<Func<TModel, TResult>> expression) 70Expression<Func<TModel, TResult>> expression, 94Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperSelectExtensions.cs (4)
222Expression<Func<TModel, TResult>> expression, 261Expression<Func<TModel, TResult>> expression, 304Expression<Func<TModel, TResult>> expression, 404Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperValidationExtensions.cs (4)
178Expression<Func<TModel, TResult>> expression) 206Expression<Func<TModel, TResult>> expression, 241Expression<Func<TModel, TResult>> expression, 275Expression<Func<TModel, TResult>> expression,
Rendering\HtmlHelperValueExtensions.cs (1)
51Expression<Func<TModel, TResult>> expression)
Rendering\IHtmlHelperOfT.cs (18)
44IHtmlContent CheckBoxFor(Expression<Func<TModel, bool>> expression, object htmlAttributes); 77Expression<Func<TModel, TResult>> expression, 88string DisplayNameFor<TResult>(Expression<Func<TModel, TResult>> expression); 99Expression<Func<TModelItem, TResult>> expression); 111string DisplayTextFor<TResult>(Expression<Func<TModel, TResult>> expression); 143Expression<Func<TModel, TResult>> expression, 177Expression<Func<TModel, TResult>> expression, 208Expression<Func<TModel, TResult>> expression, 217string IdFor<TResult>(Expression<Func<TModel, TResult>> expression); 231Expression<Func<TModel, TResult>> expression, 262Expression<Func<TModel, TResult>> expression, 274string NameFor<TResult>(Expression<Func<TModel, TResult>> expression); 294Expression<Func<TModel, TResult>> expression, 327Expression<Func<TModel, TResult>> expression, 359Expression<Func<TModel, TResult>> expression, 389Expression<Func<TModel, TResult>> expression, 417Expression<Func<TModel, TResult>> expression, 441Expression<Func<TModel, TResult>> expression,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (195)
CachedExpressionCompilerTest.cs (62)
15var expression = GetTestModelExpression(m => m); 30var expression1 = GetTestModelExpression(m => m); 31var expression2 = GetTestModelExpression(m => m); 48var expression = GetTestModelExpression(m => differentModel); 64var expression = GetTestModelExpression(m => (DifferentModel)null); 80var expression = GetTestModelExpression(m => differentModel); 97var expression1 = GetTestModelExpression(m => differentModel); 98var expression2 = GetTestModelExpression(m => differentModel); 121var expression = GetTestModelExpression(m => differentModel); 144var expression = GetTestModelExpression(m => 10); 160var expression = GetTestModelExpression(m => TestModel.StaticField); 175var expression1 = GetTestModelExpression(m => TestModel.StaticField); 176var expression2 = GetTestModelExpression(m => TestModel.StaticField); 194var expression = GetTestModelExpression(m => TestModel.StaticProperty); 209var expression1 = GetTestModelExpression(m => TestModel.StaticProperty); 210var expression2 = GetTestModelExpression(m => TestModel.StaticProperty); 227var expression = GetTestModelExpression(m => TestModel.StaticProperty); 243var expression = GetTestModelExpression(m => DifferentModel.Constant); 258var expression = GetTestModelExpression(m => DifferentModel.Constant); 274var expression = GetTestModelExpression(m => m.Name); 289var expression1 = GetTestModelExpression(m => m.Name); 290var expression2 = GetTestModelExpression(m => m.Name); 306var expression = GetTestModelExpression(m => m.Age); 322var expression = GetTestModelExpression(m => m.Name); 338var expression = GetTestModelExpression(m => m.Age); 354var expression = GetExpression<BadEqualityModel, int>(m => m.Id); 370var expression = GetExpression<BadEqualityModel, int>(m => m.Id); 386var expression = GetExpression<BadEqualityValueTypeModel, int>(m => m.Id); 402var expression = GetExpression<BadEqualityValueTypeModel, int>(m => m.Id); 418var expression = GetExpression<DateTime, int>(m => m.Year); 434var expression = GetExpression<DateTime, int>(m => m.Year); 451var expression = GetExpression<DateTime?, DateTime>(m => m.Value); 467var expression = GetExpression<DateTime?, DateTime>(m => m.Value); 484var expression = GetTestModelExpression(m => m.Date.Year); 500var expression = GetTestModelExpression(m => m.Date.Year); 517var expression = GetTestModelExpression(m => m.DifferentModel.Name); 532var expression1 = GetTestModelExpression(m => m.DifferentModel.Name); 533var expression2 = GetTestModelExpression(m => m.DifferentModel.Name); 548var expression1 = GetTestModelExpression(m => m.Date.Year); 549var expression2 = GetTestModelExpression(m => m.Date.Year); 576var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 599var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 620var expression = GetExpression<Chain0Model, string>(m => m.Chain1.ValueTypeModel.TestModel.DifferentModel.Name); 647var expression = GetExpression<Chain0Model, string>(m => m.Chain1.NullableValueTypeModel.Value.TestModel.DifferentModel.Name); 670var expression = GetExpression<Chain0Model, string>(m => m.Chain1.NullableValueTypeModel.Value.TestModel.DifferentModel.Name); 686var expression = GetTestModelExpression(m => m.DifferentModel.Name); 702var expression = GetTestModelExpression(m => m.DifferentModel.Name); 722var expression = GetExpression<ValueType1, string>(m => m.ValueType2.Name); 742var expression = GetExpression<ValueType1, DateTime>(m => m.ValueType2.Date); 762var expression = GetExpression<ValueType1, string>(m => m.NullableValueType2.Value.Name); 778var expression = GetExpression<ValueType1, string>(m => m.NullableValueType2.Value.Name); 794var expression = GetExpression<ValueType1, DateTime>(m => m.NullableValueType2.Value.Date); 810var expression = GetTestModelExpression(m => differentModel.Name); 825var expression = GetTestModelExpression(m => differentModel); 842var expression = GetTestModelExpression(m => differentModel); 858var expression = GetTestModelExpression(m => differentModel.Length); 873var expression = GetTestModelExpression(m => m.DifferentModels[0].Name); 886var expression = GetTestModelExpression(m => m.Sizes[1]); 895private static Expression<Func<TModel, TResult>> GetExpression<TModel, TResult>(Expression<Func<TModel, TResult>> expression) 898private static Expression<Func<TestModel, TResult>> GetTestModelExpression<TResult>(Expression<Func<TestModel, TResult>> expression)
ExpressionHelperTest.cs (102)
28(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 32(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 36(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 40(Expression<Func<LowerModel, int>>)(testModel => testModel.selectedcategory.CategoryId), 44(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 48(Expression<Func<TestModel, TestModel>>)(model => model), 52(Expression<Func<TestModel, string>>)(model => value), 56(Expression<Func<TestModel, int>>)(model => models[0].SelectedCategory.CategoryId), 60(Expression<Func<TestModel, string>>)(model => modelTest.Name), 64(Expression<Func<TestModel, Type>>)(model => modelType), 68(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 72(Expression<Func<IList<TestModel>, Category>>)(model => model[i].SelectedCategory), 76(Expression<Func<IList<LowerModel>, Category>>)(model => model[i].selectedcategory), 80(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 84(Expression<Func<TestModel, int>>)(model => model.PreferredCategories[i].CategoryId), 88(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 92(Expression<Func<IList<TestModel>, int>>)(model => model[2].PreferredCategories[i].CategoryId), 96(Expression<Func<IList<LowerModel>, int>>)(model => model[2].preferredcategories[i].CategoryId), 100(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Name), 104(Expression<Func<IList<LowerModel>, string>>)(model => model.FirstOrDefault().name), 108(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Model), 112(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().SelectedCategory.CategoryId), 116(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().SelectedCategory.CategoryName.MainCategory), 120(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.Count), 124(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.FirstOrDefault().CategoryId), 130(Expression<Func<TestModel, int>>)(m => Microsoft.AspNetCore.Mvc.ViewFeatures.Model.Constants.WoodstockYear), 135(Expression<Func<TestModel, int>>)(m => Model.Constants.WoodstockYear), 142(Expression<Func<TestModel, string>>)(m => Model.Constants.Model.Name), 146(Expression<Func<TestModel, string>>)(m => AStaticClass.Model), 150(Expression<Func<TestModel, string>>)(m => AStaticClass.Test), 154(Expression<Func<TestModel, string>>)(m => AnotherStaticClass.Model.Name), 158(Expression<Func<TestModel, string>>)(m => AnotherStaticClass.Test.Name), 166data.Add((Expression<Func<TestModel, string>>)(m => model), string.Empty); 172data.Add((Expression<Func<TestModel, TestModel>>)(m => Model), string.Empty); 173data.Add((Expression<Func<TestModel, TestModel>>)(model => Model), string.Empty); 174data.Add((Expression<Func<TestModel, Category>>)(m => Model.SelectedCategory), "SelectedCategory"); 190(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 191(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 192(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 193(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 194(Expression<Func<TestModel, string>>)(testModel => key), 195(Expression<Func<TestModel, TestModel>>)(m => m), 196(Expression<Func<TestModel, Category>>)(m => myModel.SelectedCategory), 211(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 212(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 213(Expression<Func<IList<TestModel>, CategoryName>>)(testModel => testModel[i].SelectedCategory.CategoryName), 214(Expression<Func<TestModel, int>>)(model => model.PreferredCategories[i].CategoryId), 215(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 230(Expression<Func<TestModel[][], string>>)(model => model[23][3].Name), 231(Expression<Func<TestModel[][], string>>)(model => model[i][3].Name), 232(Expression<Func<TestModel[][], string>>)(model => model[23][j].Name), 233(Expression<Func<TestModel[][], string>>)(model => model[i][j].Name), 235(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().Name), 236(Expression<Func<IList<TestModel>, string>>)(model => model.FirstOrDefault().SelectedCategory.CategoryName.MainCategory), 237(Expression<Func<IList<TestModel>, int>>)(model => model.FirstOrDefault().PreferredCategories.FirstOrDefault().CategoryId), 252(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 253(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 256(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 257(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName) 260(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 261(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId) 264(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory), 265(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory) 268(Expression<Func<TestModel, TestModel>>)(model => model), 269(Expression<Func<TestModel, TestModel>>)(m => m) 272(Expression<Func<TestModel, string>>)(model => value), 273(Expression<Func<TestModel, string>>)(m => value) 279(Expression<Func<TestModel, string>>)(m => Model), 280(Expression<Func<TestModel, TestModel>>)(m => m) 298(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory), 299(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName) 302(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 303(Expression<Func<LowerModel, CategoryName>>)(model => model.selectedcategory.CategoryName) 306(Expression<Func<TestModel, string>>)(model => model.Model), 307(Expression<Func<TestModel, string>>)(model => model.Name) 310(Expression<Func<TestModel, string>>)(model => model.Model), 311(Expression<Func<LowerModel, string>>)(model => model.model) 314(Expression<Func<TestModel, string>>)(model => model.Name), 315(Expression<Func<LowerModel, string>>)(model => model.name) 318(Expression<Func<TestModel, CategoryName>>)(model => model.SelectedCategory.CategoryName), 319(Expression<Func<TestModel, string>>)(model => value) 322(Expression<Func<TestModel, string>>)(testModel => testModel.SelectedCategory.CategoryName.MainCategory), 323(Expression<Func<TestModel, string>>)(testModel => value) 326(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 327(Expression<Func<TestModel, string>>)(model => model.SelectedCategory.CategoryName.MainCategory) 330(Expression<Func<IList<TestModel>, Category>>)(model => model[2].SelectedCategory), 331(Expression<Func<IList<LowerModel>, Category>>)(model => model[2].selectedcategory) 334(Expression<Func<TestModel, int>>)(testModel => testModel.SelectedCategory.CategoryId), 335(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 338(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 339(Expression<Func<TestModel, Category>>)(model => model.SelectedCategory) 342(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 343(Expression<Func<IDictionary<string, LowerModel>, string>>)(model => model[key].selectedcategory.CategoryName.MainCategory) 346(Expression<Func<TestModel, string>>)(m => Model), 347(Expression<Func<TestModel, string>>)(m => m.Model) 350(Expression<Func<TestModel, TestModel>>)(m => m), 351(Expression<Func<TestModel, string>>)(m => m.Model) 354(Expression<Func<TestModel, string>>)(m => myModel.Name), 355(Expression<Func<TestModel, string>>)(m => m.Name) 358(Expression<Func<TestModel, string>>)(m => key), 359(Expression<Func<TestModel, string>>)(m => value) 448(Expression<Func<List<TestModel>, int>>)(m => collection[i].SelectedCategory.CategoryId),
MemberExpressionCacheKeyComparerTest.cs (2)
187private static MemberExpressionCacheKey GetKey<TResult>(Expression<Func<TestModel, TResult>> expression) 190private static MemberExpressionCacheKey GetKey<TModel, TResult>(Expression<Func<TModel, TResult>> expression)
MemberExpressionCacheKeyTest.cs (1)
70private static MemberExpressionCacheKey GetKey<TResult>(Expression<Func<TestModel, TResult>> expression)
Rendering\HtmlHelperHiddenTest.cs (6)
761public static TheoryData<Expression<Func<HiddenModel, string>>, string> HiddenFor_UsesPropertyValueIfModelStateDoesNotContainValueData 767return new TheoryData<Expression<Func<HiddenModel, string>>, string> 796Expression<Func<HiddenModel, string>> expression, 822public static TheoryData<Expression<Func<HiddenModel, string>>, string> HiddenFor_UsesModelStateValueForComplexExpressionsData 826return new TheoryData<Expression<Func<HiddenModel, string>>, string> 850Expression<Func<HiddenModel, string>> expression,
Rendering\HtmlHelperNameExtensionsTest.cs (4)
248public static TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> StaticExpressionNamesData 259private TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> ExpressionNamesData 269return new TheoryData<Expression<Func<List<OuterClass>, string>>, string, string> 307Expression<Func<List<OuterClass>, string>> expression,
Rendering\HtmlHelperPasswordTest.cs (6)
323public static TheoryData<Expression<Func<PasswordModel, string>>, string> PasswordFor_WithComplexExpressionsData 327return new TheoryData<Expression<Func<PasswordModel, string>>, string> 351Expression<Func<PasswordModel, string>> expression, 471public static TheoryData<Expression<Func<PasswordModel, string>>, string> PasswordFor_IgnoresExpressionValueForComplexExpressionsData 475return new TheoryData<Expression<Func<PasswordModel, string>>, string> 499Expression<Func<PasswordModel, string>> expression,
Rendering\HtmlHelperTextAreaTest.cs (6)
41public static TheoryData<Expression<Func<ComplexModel, string>>, string> TextAreaFor_UsesModelValueForComplexExpressionsData 45return new TheoryData<Expression<Func<ComplexModel, string>>, string> 69Expression<Func<ComplexModel, string>> expression, 88public static TheoryData<Expression<Func<ComplexModel, string>>, string> TextAreaFor_UsesModelStateValueForComplexExpressionsData 92return new TheoryData<Expression<Func<ComplexModel, string>>, string> 116Expression<Func<ComplexModel, string>> expression,
Rendering\HtmlHelperTextBoxTest.cs (6)
59public static TheoryData<Expression<Func<ComplexModel, string>>, string> TextBoxFor_UsesModelValueForComplexExpressionsData 63return new TheoryData<Expression<Func<ComplexModel, string>>, string> 87Expression<Func<ComplexModel, string>> expression, 106public static TheoryData<Expression<Func<ComplexModel, string>>, string> TextBoxFor_UsesModelStateValueForComplexExpressionsData 110return new TheoryData<Expression<Func<ComplexModel, string>>, string> 134Expression<Func<ComplexModel, string>> expression,
Microsoft.AspNetCore.OpenApi (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
388Expression<RequestDelegate> handler = context => Task.CompletedTask;
Constraints\CompositeRouteConstraintTests.cs (1)
35static readonly Expression<Func<IRouteConstraint, bool>> ConstraintMatchMethodExpression =
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.AspNetCore.SignalR.Core (4)
Internal\HubMethodDescriptor.cs (1)
246var lambda = Expression.Lambda<Func<object, CancellationToken, IAsyncEnumerator<object?>>>(methodCall, parameters);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
224var lambda = Expression.Lambda<VoidMethodExecutor>(methodCall, targetParameter, parametersParameter); 232var lambda = Expression.Lambda<MethodExecutor>(castMethodCall, targetParameter, parametersParameter); 382var lambda = Expression.Lambda<MethodExecutorAsync>(returnValueExpression, targetParameter, parametersParameter);
Microsoft.CodeAnalysis.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
50var expressionType = compilation.GetTypeByMetadataName(typeof(Expression<>).FullName!);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
64var expressionType = compilation.GetTypeByMetadataName(typeof(Expression<>).FullName!);
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
55var expressionType = context.Compilation.GetTypeByMetadataName(typeof(System.Linq.Expressions.Expression<>).FullName!);
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
50var expressionType = compilation.GetTypeByMetadataName(typeof(Expression<>).FullName!);
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
64var expressionType = compilation.GetTypeByMetadataName(typeof(Expression<>).FullName!);
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
55var expressionType = context.Compilation.GetTypeByMetadataName(typeof(System.Linq.Expressions.Expression<>).FullName!);
Microsoft.CodeAnalysis.EditorFeatures (7)
Lightup\LightupHelpers.cs (7)
92var expression = 144var expression = 216var expression = 272var expression = 328var expression = 398var expression = 488var expression =
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
ExpressionTrees\Sources\ExprLambdaUtils.vb (7)
13Public Shared Sub DCheck(Of T)(e As Expression(Of T), expected As String) 17Public Shared Sub Check(Of T)(e As Expression(Of Func(Of T)), expected As String) 21Public Shared Sub Check(Of T1, T2)(e As Expression(Of Func(Of T1, T2)), expected As String) 25Public Shared Sub Check(Of T1, T2, T3)(e As Expression(Of Func(Of T1, T2, T3)), expected As String) 29Public Shared Sub Check(Of T1, T2, T3, T4)(e As Expression(Of Func(Of T1, T2, T3, T4)), expected As String) 45Public Function Dump(Of T)(self As Expression(Of T)) As String 245Protected Overrides Function VisitLambda(Of T)(node As Expression(Of T)) As Expression
ExpressionTrees\Sources\QueryHelper.vb (7)
59Public Function [Select](Of T, S)(ByVal i As QueryHelper(Of T), ByVal func As Expression(Of Func(Of T, S))) As QueryHelper(Of S) 65Public Function [SelectMany](Of TSource, TCollection, TResult)(ByVal source As QueryHelper(Of TSource), ByVal collectionSelector As Expression(Of Func(Of TSource, IEnumerable(Of TCollection))), ByVal resultSelector As Expression(Of Func(Of TSource, TCollection, TResult))) As QueryHelper(Of TResult) 72Public Function [Where](Of T)(ByVal source As QueryHelper(Of T), ByVal predicate As Expression(Of Func(Of T, Boolean))) As QueryHelper(Of T) 82Public Function GroupJoin(Of TOuter, TInner, TKey, TResult)(outer As System.Linq.IQueryable(Of TOuter), inner As System.Linq.IQueryable(Of TInner), outerKeySelector As Expression(Of Func(Of TOuter, TKey)), innerKeySelector As Expression(Of Func(Of TInner, TKey)), resultSelector As Expression(Of Func(Of TOuter, System.Linq.IQueryable(Of TInner), TResult))) As System.Linq.IQueryable(Of TResult)
Microsoft.CodeAnalysis.Workspaces (2)
Recommendations\AbstractRecommendationServiceRunner.cs (2)
179/// <param name="candidateSymbols">symbols corresponding to <see cref="Expression{Func}"/> or <see cref="Func{some_args, TResult}"/> 191var expressionSymbol = _context.SemanticModel.Compilation.GetTypeByMetadataName(typeof(Expression<>).FullName);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
160new PredefinedTypeInfo(PredefinedType.PT_G_EXPRESSION, typeof(System.Linq.Expressions.Expression<>), "System.Linq.Expressions.Expression`1"),
Microsoft.DotNet.Build.Tasks.Packaging (2)
Extensions.cs (2)
140public static void UpdateMember<T1, T2>(this T1 target, Expression<Func<T1, T2>> memberLamda, T2 value) 162public static void AddRangeToMember<T, TItem>(this T target, Expression<Func<T, ICollection<TItem>>> memberLamda, IEnumerable<TItem> value)
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)
73Expression<Func<ServiceProviderEngineScope, object>> expression = BuildExpression(callSite); 78private Expression<Func<ServiceProviderEngineScope, object>> BuildExpression(ServiceCallSite callSite)
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ActivatorUtilities.cs (2)
291var factoryLambda = Expression.Lambda<ObjectFactory>( 324var factoryLambda = Expression.Lambda<ObjectFactory<T>>(
Microsoft.Maui.Controls (13)
BoundsConstraint.cs (2)
23 public static BoundsConstraint FromExpression(Expression<Func<Rect>> expression, IEnumerable<View> parents = null) 28 internal static BoundsConstraint FromExpression(Expression<Func<Rect>> expression, bool fromExpression, IEnumerable<View> parents = null)
LegacyLayouts\Constraint.cs (1)
28 public static Constraint FromExpression(Expression<Func<double>> expression)
LegacyLayouts\RelativeLayout.cs (10)
343 void Add(T view, Expression<Func<Rect>> bounds); 345 void Add(T view, Expression<Func<double>> x = null, Expression<Func<double>> y = null, Expression<Func<double>> width = null, Expression<Func<double>> height = null); 359 public void Add(View view, Expression<Func<Rect>> bounds) 368 public void Add(View view, Expression<Func<double>> x = null, Expression<Func<double>> y = null, Expression<Func<double>> width = null, Expression<Func<double>> height = null)
Microsoft.ML.Core (6)
Utilities\FuncInstanceMethodInfo1`2.cs (1)
56public static FuncInstanceMethodInfo1<TTarget, TResult> Create(Expression<Func<TTarget, Func<TResult>>> expression)
Utilities\FuncInstanceMethodInfo1`3.cs (1)
57public static FuncInstanceMethodInfo1<TTarget, T, TResult> Create(Expression<Func<TTarget, Func<T, TResult>>> expression)
Utilities\FuncInstanceMethodInfo1`4.cs (1)
58public static FuncInstanceMethodInfo1<TTarget, T1, T2, TResult> Create(Expression<Func<TTarget, Func<T1, T2, TResult>>> expression)
Utilities\FuncInstanceMethodInfo2`4.cs (1)
58public static FuncInstanceMethodInfo2<TTarget, T1, T2, TResult> Create(Expression<Func<TTarget, Func<T1, T2, TResult>>> expression)
Utilities\FuncInstanceMethodInfo3`3.cs (1)
57public static FuncInstanceMethodInfo3<TTarget, T, TResult> Create(Expression<Func<TTarget, Func<T, TResult>>> expression)
Utilities\FuncInstanceMethodInfo3`4.cs (1)
58public static FuncInstanceMethodInfo3<TTarget, T1, T2, TResult> Create(Expression<Func<TTarget, Func<T1, T2, TResult>>> expression)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
PropertyChangedTestMonitor.vb (1)
26Public Sub AddExpectation(Of TResult)(expectation As Expression(Of Func(Of TResult)), Optional count As Integer = 1)
netstandard (1)
netstandard.cs (1)
997[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.Expression<>))]
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
System.ComponentModel.Composition (17)
System\ComponentModel\Composition\ConstraintServices.cs (5)
23public static Expression<Func<ExportDefinition, bool>> CreateConstraint(string contractName, string? requiredTypeIdentity, IEnumerable<KeyValuePair<string, Type>> requiredMetadata, CreationPolicy requiredCreationPolicy) 52Expression<Func<ExportDefinition, bool>> constraint = Expression.Lambda<Func<ExportDefinition, bool>>(constraintBody, parameter); 186public static Expression<Func<ExportDefinition, bool>> CreatePartCreatorConstraint(Expression<Func<ExportDefinition, bool>> baseConstraint, ImportDefinition productImportDefinition) 213Expression<Func<ExportDefinition, bool>> constraint =
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
68public override Expression<Func<ExportDefinition, bool>> Constraint
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (3)
25private Expression<Func<ExportDefinition, bool>>? _constraint; 260/// A <see cref="Expression{TDelegate}"/> containing a <see cref="Func{T, TResult}"/> 272public override Expression<Func<ExportDefinition, bool>> Constraint =>
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (6)
19private readonly Expression<Func<ExportDefinition, bool>>? _constraint; 49/// A <see cref="Expression{TDelegate}"/> containing a <see cref="Func{T, TResult}"/> 81public ImportDefinition(Expression<Func<ExportDefinition, bool>> constraint, string? contractName, ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite) 89public ImportDefinition(Expression<Func<ExportDefinition, bool>> constraint, string? contractName, ImportCardinality cardinality, bool isRecomposable, bool isPrerequisite, IDictionary<string, object?>? metadata) 188/// A <see cref="Expression{TDelegate}"/> containing a <see cref="Func{T, TResult}"/> 200public virtual Expression<Func<ExportDefinition, bool>> Constraint
System\ComponentModel\Composition\ReflectionModel\PartCreatorMemberImportDefinition.cs (1)
38public override Expression<Func<ExportDefinition, bool>> Constraint
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
38public override Expression<Func<ExportDefinition, bool>> Constraint
System.ComponentModel.Composition.Registration (18)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (18)
18public PropertyExpressionAdapter(Expression<Func<T, object>> propertyFilter, 42private static PropertyInfo SelectProperties(Expression<Func<T, object>> propertyFilter) 60private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr) 64expr = (Expression<Func<T, object>>)expr.Reduce(); 75public ConstructorExpressionAdapter(Expression<Func<ParameterImportBuilder, T>> selectConstructor) 94private void ParseSelectConstructor(Expression<Func<ParameterImportBuilder, T>> constructorFilter) 133private static Expression<Func<ParameterImportBuilder, T>> Reduce(Expression<Func<ParameterImportBuilder, T>> expr) 148public PartBuilder<T> SelectConstructor(Expression<Func<ParameterImportBuilder, T>> constructorFilter) 159public PartBuilder<T> ExportProperty(Expression<Func<T, object>> propertyFilter) 165Expression<Func<T, object>> propertyFilter, 176public PartBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertyFilter) 181public PartBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertyFilter, 192public PartBuilder<T> ImportProperty(Expression<Func<T, object>> propertyFilter) 197public PartBuilder<T> ImportProperty(Expression<Func<T, object>> propertyFilter, 208public PartBuilder<T> ImportProperty<TContract>(Expression<Func<T, object>> propertyFilter) 213public PartBuilder<T> ImportProperty<TContract>(Expression<Func<T, object>> propertyFilter,
System.Composition.Convention (27)
System\Composition\Convention\PartConventionBuilderOfT.cs (27)
20public MethodExpressionAdapter(Expression<Action<T>> methodSelector) 30private static MethodInfo SelectMethods(Expression<Action<T>> methodSelector) 48private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr) 52expr = (Expression<Func<T, object>>)expr.Reduce(); 57private static Expression<Action<T>> Reduce(Expression<Action<T>> expr) 61expr = (Expression<Action<T>>)expr.Reduce(); 74Expression<Func<T, object>> propertySelector, 98private static PropertyInfo SelectProperties(Expression<Func<T, object>> propertySelector) 116private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr) 120expr = (Expression<Func<T, object>>)expr.Reduce(); 131public ConstructorExpressionAdapter(Expression<Func<ParameterImportConventionBuilder, T>> selectConstructor) 154private void ParseSelectConstructor(Expression<Func<ParameterImportConventionBuilder, T>> constructorSelector) 190private static Expression<Func<ParameterImportConventionBuilder, T>> Reduce(Expression<Func<ParameterImportConventionBuilder, T>> expr) 209public PartConventionBuilder<T> SelectConstructor(Expression<Func<ParameterImportConventionBuilder, T>> constructorSelector) 223public PartConventionBuilder<T> ExportProperty(Expression<Func<T, object>> propertySelector) 235Expression<Func<T, object>> propertySelector, 252public PartConventionBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertySelector) 265Expression<Func<T, object>> propertySelector, 280public PartConventionBuilder<T> ImportProperty(Expression<Func<T, object>> propertySelector) 292Expression<Func<T, object>> propertySelector, 308public PartConventionBuilder<T> ImportProperty<TContract>(Expression<Func<T, object>> propertySelector) 321Expression<Func<T, object>> propertySelector, 335public PartConventionBuilder<T> NotifyImportsSatisfied(Expression<Action<T>> methodSelector)
System.Composition.TypedParts (1)
System\Composition\TypedParts\Discovery\DiscoveredPropertyExport.cs (1)
27var activator = Expression.Lambda<CompositeActivator>(
System.Core (1)
System.Core.cs (1)
135[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.Expression<>))]
System.Linq.Expressions (55)
System\Linq\Expressions\Compiler\StackSpiller.cs (3)
101internal Expression<T> Rewrite<T>(Expression<T> lambda) 122return Expression<T>.Create(newBody, lambda.Name, lambda.TailCall, new ParameterList(lambda));
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
85protected internal override Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\DebugViewWriter.cs (1)
398protected internal override Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
295protected internal override Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
338/// Visits the children of the <see cref="Expression{T}"/>. 344protected internal virtual Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2826protected internal override Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
513protected internal override Expression VisitLambda<T>(Expression<T> node)
System\Linq\Expressions\InvocationExpression.cs (9)
415/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.</exception> 451/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an argument expression is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 492/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an argument expression is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 536/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an argument expression is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 585/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an argument expression is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 638/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an argument expression is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 681/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an element of <paramref name="arguments"/> is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 708/// <paramref name="expression"/>.Type does not represent a delegate type or an <see cref="Expression{TDelegate}"/>.-or-The <see cref="Expression.Type"/> property of an element of <paramref name="arguments"/> is not assignable to the type of the corresponding parameter of the delegate represented by <paramref name="expression"/>.</exception> 748Type? exprType = TypeUtils.FindGenericType(typeof(Expression<>), expression.Type);
System\Linq\Expressions\LambdaExpression.cs (32)
24private static readonly MethodInfo s_expressionCompileMethodInfo = typeof(Expression<>).GetMethod("Compile", Type.EmptyTypes)!; 195/// Defines a <see cref="Expression{TDelegate}"/> node. 211internal override Type PublicType => typeof(Expression<TDelegate>); 253public Expression<TDelegate> Update(Expression body, IEnumerable<ParameterExpression>? parameters) 289internal virtual Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 307internal static Expression<TDelegate> Create(Expression body, string? name, bool tailCall, IReadOnlyList<ParameterExpression> parameters) 338public static Expression<TDelegate> CreateExpressionFunc(Expression body, string? name, bool tailCall, ReadOnlyCollection<ParameterExpression> parameters) 375internal override Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 419internal override Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 481internal override Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 549internal override Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 582internal override Expression<TDelegate> Rewrite(Expression body, ParameterExpression[]? parameters) 626create = typeof(Expression<>).MakeGenericType(delegateType).GetMethod("Create", BindingFlags.Static | BindingFlags.NonPublic)!; 645/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 651public static Expression<TDelegate> Lambda<TDelegate>(Expression body, params ParameterExpression[]? parameters) 657/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 664public static Expression<TDelegate> Lambda<TDelegate>(Expression body, bool tailCall, params ParameterExpression[]? parameters) 670/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 676public static Expression<TDelegate> Lambda<TDelegate>(Expression body, IEnumerable<ParameterExpression>? parameters) 682/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 689public static Expression<TDelegate> Lambda<TDelegate>(Expression body, bool tailCall, IEnumerable<ParameterExpression>? parameters) 695/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 702public static Expression<TDelegate> Lambda<TDelegate>(Expression body, string? name, IEnumerable<ParameterExpression>? parameters) 708/// Creates an <see cref="Expression{TDelegate}"/> where the delegate type is known at compile time. 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> 716public static Expression<TDelegate> Lambda<TDelegate>(Expression body, string? name, bool tailCall, IEnumerable<ParameterExpression>? parameters) 722return Expression<TDelegate>.Create(body, name, tailCall, parameterList);
System\Runtime\CompilerServices\CallSite.cs (1)
650Expression<T> lambda = Expression.Lambda<T>(
System\Runtime\CompilerServices\CallSiteBinder.cs (2)
134Expression<T> e = Stitch(binding, signature); 153private static Expression<T> Stitch<T>(Expression binding, LambdaSignature<T> signature) where T : class
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (1)
68protected internal override Expression VisitLambda<T>(Expression<T> node)
System.Linq.Queryable (342)
System\Linq\EnumerableExecutor.cs (1)
45Expression<Func<T>> f = Expression.Lambda<Func<T>>(body, (IEnumerable<ParameterExpression>?)null);
System\Linq\EnumerableQuery.cs (1)
110Expression<Func<IEnumerable<T>>> f = Expression.Lambda<Func<IEnumerable<T>>>(body, (IEnumerable<ParameterExpression>?)null);
System\Linq\EnumerableRewriter.cs (2)
120protected override Expression VisitLambda<T>(Expression<T> node) => node; 367Type? eType = TypeHelper.FindGenericType(typeof(Expression<>), tmp);
System\Linq\Queryable.cs (338)
48public static IQueryable<TSource> Where<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 56new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(Where).Method, 61public static IQueryable<TSource> Where<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) 69new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(Where).Method, 98public static IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector) 106new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, IQueryable<TResult>>(Select).Method, 111public static IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector) 119new Func<IQueryable<TSource>, Expression<Func<TSource, int, TResult>>, IQueryable<TResult>>(Select).Method, 124public static IQueryable<TResult> SelectMany<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector) 132new Func<IQueryable<TSource>, Expression<Func<TSource, IEnumerable<TResult>>>, IQueryable<TResult>>(SelectMany).Method, 137public static IQueryable<TResult> SelectMany<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector) 145new Func<IQueryable<TSource>, Expression<Func<TSource, int, IEnumerable<TResult>>>, IQueryable<TResult>>(SelectMany).Method, 150public static IQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector) 159new Func<IQueryable<TSource>, Expression<Func<TSource, int, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>, IQueryable<TResult>>(SelectMany).Method, 164public static IQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector) 173new Func<IQueryable<TSource>, Expression<Func<TSource, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>, IQueryable<TResult>>(SelectMany).Method, 199/// The following code example demonstrates how to use <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> to perform an inner join of two sequences based on a common key. 259/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 260/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 263/// The <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method 265/// <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 271/// <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 281public static IQueryable<TResult> Join<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector) 292new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>, IQueryable<TResult>>(Join).Method, 313/// The following code example demonstrates how to use <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key. 374/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 375/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 378/// The <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method 380/// <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 386/// <see cref="Join{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 396public static IQueryable<TResult> Join<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 407new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(Join).Method, 412public static IQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector) 423new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, IEnumerable<TInner>, TResult>>, IQueryable<TResult>>(GroupJoin).Method, 428public static IQueryable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, IEnumerable<TInner>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 439new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, IEnumerable<TInner>, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(GroupJoin).Method, 459/// The following code example demonstrates how to use <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key. 520/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 521/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 524/// The <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method 526/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 532/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 542public static IQueryable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner?, TResult>> resultSelector) 553new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner?, TResult>>, IQueryable<TResult>>(LeftJoin).Method, 574/// The following code example demonstrates how to use <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key. 635/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 636/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 639/// The <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method 641/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 647/// <see cref="LeftJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 657public static IQueryable<TResult> LeftJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter, TInner?, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 668new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner?, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(LeftJoin).Method, 680/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one 682/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>. 717/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one 719/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>. 746public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 754new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderBy).Method, 759public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 767new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderBy).Method, 779/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one 781/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>. 816/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one 818/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>. 845public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 853new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderByDescending).Method, 858public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 866new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderByDescending).Method, 886/// The following code example demonstrates how to use <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key. 946/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 947/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 950/// The <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> method 952/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 958/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}})" /> 968public static IQueryable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter?, TInner, TResult>> resultSelector) 979new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter?, TInner, TResult>>, IQueryable<TResult>>(RightJoin).Method, 1000/// The following code example demonstrates how to use <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> to perform an inner join of two sequences based on a common key. 1060/// This method has at least one parameter of type <see cref="Expression{TDelegate}" /> whose type argument is one of the <see cref="Func{T,TResult}" /> types. 1061/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}" />. 1064/// The <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> method 1066/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 1072/// <see cref="RightJoin{TOuter, TInner, TKey, TResult}(IQueryable{TOuter}, IEnumerable{TInner}, Expression{Func{TOuter, TKey}}, Expression{Func{TInner, TKey}}, Expression{Func{TOuter, TInner, TResult}}, IEqualityComparer{TKey})" /> 1082public static IQueryable<TResult> RightJoin<TOuter, TInner, TKey, TResult>(this IQueryable<TOuter> outer, IEnumerable<TInner> inner, Expression<Func<TOuter, TKey>> outerKeySelector, Expression<Func<TInner, TKey>> innerKeySelector, Expression<Func<TOuter?, TInner, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 1093new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter?, TInner, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(RightJoin).Method, 1098public static IOrderedQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 1106new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(ThenBy).Method, 1111public static IOrderedQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 1119new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(ThenBy).Method, 1124public static IOrderedQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 1132new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(ThenByDescending).Method, 1137public static IOrderedQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 1145new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(ThenByDescending).Method, 1180public static IQueryable<TSource> TakeWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1188new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(TakeWhile).Method, 1193public static IQueryable<TSource> TakeWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) 1201new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(TakeWhile).Method, 1218public static IQueryable<TSource> SkipWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1226new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(SkipWhile).Method, 1231public static IQueryable<TSource> SkipWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate) 1239new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(SkipWhile).Method, 1244public static IQueryable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 1252new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<IGrouping<TKey, TSource>>>(GroupBy).Method, 1257public static IQueryable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector) 1266new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IQueryable<IGrouping<TKey, TElement>>>(GroupBy).Method, 1271public static IQueryable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer) 1279new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<IGrouping<TKey, TSource>>>(GroupBy).Method, 1284public static IQueryable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, IEqualityComparer<TKey>? comparer) 1293new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IEqualityComparer<TKey>, IQueryable<IGrouping<TKey, TElement>>>(GroupBy).Method, 1298public static IQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector) 1308new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IQueryable<TResult>>(GroupBy).Method, 1313public static IQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector) 1322new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IQueryable<TResult>>(GroupBy).Method, 1327public static IQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 1336new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(GroupBy).Method, 1341public static IQueryable<TResult> GroupBy<TSource, TKey, TElement, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector, Expression<Func<TKey, IEnumerable<TElement>, TResult>> resultSelector, IEqualityComparer<TKey>? comparer) 1351new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(GroupBy).Method, 1387public static IQueryable<TSource> DistinctBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 1395new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(DistinctBy).Method, 1408public static IQueryable<TSource> DistinctBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer) 1416new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(DistinctBy).Method, 1470public static IQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IQueryable<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector) 1479new Func<IQueryable<TFirst>, IEnumerable<TSecond>, Expression<Func<TFirst, TSecond, TResult>>, IQueryable<TResult>>(Zip).Method, 1544public static IQueryable<TSource> UnionBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector) 1553new Func<IQueryable<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(UnionBy).Method, 1567public static IQueryable<TSource> UnionBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer) 1576new Func<IQueryable<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(UnionBy).Method, 1637public static IQueryable<TSource> IntersectBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector) 1646new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(IntersectBy).Method, 1662public static IQueryable<TSource> IntersectBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer) 1671new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(IntersectBy).Method, 1716public static IQueryable<TSource> ExceptBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector) 1725new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(ExceptBy).Method, 1742public static IQueryable<TSource> ExceptBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer) 1751new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(ExceptBy).Method, 1771public static TSource First<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1779new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(First).Method, 1814public static TSource? FirstOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1822new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(FirstOrDefault).Method, 1834public static TSource FirstOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue) 1842new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(FirstOrDefault).Method, 1859public static TSource Last<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1867new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(Last).Method, 1902public static TSource? LastOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1910new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(LastOrDefault).Method, 1922public static TSource LastOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue) 1930new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(LastOrDefault).Method, 1948public static TSource Single<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 1956new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(Single).Method, 1992public static TSource? SingleOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 2000new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(SingleOrDefault).Method, 2013public static TSource SingleOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue) 2021new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(SingleOrDefault).Method, 2205public static bool Any<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 2213new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, bool>(Any).Method, 2218public static bool All<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 2226new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, bool>(All).Method, 2243public static int Count<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 2251new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, int>(Count).Method, 2264public static IQueryable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer = null) where TKey : notnull 2272new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, int>>>(CountBy).Method, 2289public static long LongCount<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate) 2297new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, long>(LongCount).Method, 2334public static TResult? Min<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector) 2342new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Min).Method, 2355public static TSource? MinBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 2363new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MinBy).Method, 2381public static TSource? MinBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer) 2389new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MinBy).Method, 2405public static TSource? MinBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 2413new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, TSource?>(MinBy).Method, 2451public static TResult? Max<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector) 2459new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Max).Method, 2472public static TSource? MaxBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) 2480new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MaxBy).Method, 2498public static TSource? MaxBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer) 2506new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MaxBy).Method, 2522public static TSource? MaxBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer) 2530new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, TSource?>(MaxBy).Method, 2657public static int Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector) 2665new Func<IQueryable<TSource>, Expression<Func<TSource, int>>, int>(Sum).Method, 2670public static int? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector) 2678new Func<IQueryable<TSource>, Expression<Func<TSource, int?>>, int?>(Sum).Method, 2683public static long Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector) 2691new Func<IQueryable<TSource>, Expression<Func<TSource, long>>, long>(Sum).Method, 2696public static long? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector) 2704new Func<IQueryable<TSource>, Expression<Func<TSource, long?>>, long?>(Sum).Method, 2709public static float Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector) 2717new Func<IQueryable<TSource>, Expression<Func<TSource, float>>, float>(Sum).Method, 2722public static float? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector) 2730new Func<IQueryable<TSource>, Expression<Func<TSource, float?>>, float?>(Sum).Method, 2735public static double Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector) 2743new Func<IQueryable<TSource>, Expression<Func<TSource, double>>, double>(Sum).Method, 2748public static double? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector) 2756new Func<IQueryable<TSource>, Expression<Func<TSource, double?>>, double?>(Sum).Method, 2761public static decimal Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector) 2769new Func<IQueryable<TSource>, Expression<Func<TSource, decimal>>, decimal>(Sum).Method, 2774public static decimal? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector) 2782new Func<IQueryable<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Sum).Method, 2907public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector) 2915new Func<IQueryable<TSource>, Expression<Func<TSource, int>>, double>(Average).Method, 2920public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector) 2928new Func<IQueryable<TSource>, Expression<Func<TSource, int?>>, double?>(Average).Method, 2933public static float Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector) 2941new Func<IQueryable<TSource>, Expression<Func<TSource, float>>, float>(Average).Method, 2946public static float? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector) 2954new Func<IQueryable<TSource>, Expression<Func<TSource, float?>>, float?>(Average).Method, 2959public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector) 2967new Func<IQueryable<TSource>, Expression<Func<TSource, long>>, double>(Average).Method, 2972public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector) 2980new Func<IQueryable<TSource>, Expression<Func<TSource, long?>>, double?>(Average).Method, 2985public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector) 2993new Func<IQueryable<TSource>, Expression<Func<TSource, double>>, double>(Average).Method, 2998public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector) 3006new Func<IQueryable<TSource>, Expression<Func<TSource, double?>>, double?>(Average).Method, 3011public static decimal Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector) 3019new Func<IQueryable<TSource>, Expression<Func<TSource, decimal>>, decimal>(Average).Method, 3024public static decimal? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector) 3032new Func<IQueryable<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Average).Method, 3037public static TSource Aggregate<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, TSource, TSource>> func) 3045new Func<IQueryable<TSource>, Expression<Func<TSource, TSource, TSource>>, TSource>(Aggregate).Method, 3050public static TAccumulate Aggregate<TSource, TAccumulate>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func) 3058new Func<IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, TAccumulate>(Aggregate).Method, 3063public static TResult Aggregate<TSource, TAccumulate, TResult>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, Expression<Func<TAccumulate, TResult>> selector) 3072new Func<IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, Expression<Func<TAccumulate, TResult>>, TResult>(Aggregate).Method, 3089/// This method is comparable to the <see cref="GroupBy{TSource, TKey}(IQueryable{TSource}, Expression{Func{TSource, TKey}})"/> methods 3093public static IQueryable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull 3102new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method, 3119/// This method is comparable to the <see cref="GroupBy{TSource, TKey}(IQueryable{TSource}, Expression{Func{TSource, TKey}})"/> methods 3123public static IQueryable<KeyValuePair<TKey, TAccumulate>> AggregateBy<TSource, TKey, TAccumulate>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, TAccumulate>> seedSelector, Expression<Func<TAccumulate, TSource, TAccumulate>> func, IEqualityComparer<TKey>? keyComparer = null) where TKey : notnull 3133new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, TAccumulate>>, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
Test.Utilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);
Text.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
77Expression<Func<T, TProperty>> expression = Expression.Lambda<Func<T, TProperty>>(result, parameter); 127Expression<Func<T, TProperty, T>> expression = 177Expression<Func<T, TArg, TValue>> expression = Expression.Lambda<Func<T, TArg, TValue>>(result, parameter, argument);