5 types derived from Expression
System.Linq.Expressions (5)
780 references to Expression
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Forms (11)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.QuickGrid (6)
Microsoft.AspNetCore.Components.Web (6)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Extensions (10)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Results.Tests (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (14)
Microsoft.AspNetCore.Identity.InMemory.Test (6)
Microsoft.AspNetCore.Identity.Specification.Tests (5)
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.Mvc.Core (19)
Microsoft.AspNetCore.Mvc.Core.Test (7)
Microsoft.AspNetCore.Mvc.RazorPages (4)
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);
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)
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\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 (185)
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),
Microsoft.AspNetCore.OpenApi (3)
Microsoft.AspNetCore.Routing.Tests (2)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.Abstractions (2)
netstandard (1)
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\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.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)
63private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr)
67expr = (Expression<Func<T, object>>)expr.Reduce();
78public ConstructorExpressionAdapter(Expression<Func<ParameterImportBuilder, T>> selectConstructor)
97private void ParseSelectConstructor(Expression<Func<ParameterImportBuilder, T>> constructorFilter)
139private static Expression<Func<ParameterImportBuilder, T>> Reduce(Expression<Func<ParameterImportBuilder, T>> expr)
154public PartBuilder<T> SelectConstructor(Expression<Func<ParameterImportBuilder, T>> constructorFilter)
168public PartBuilder<T> ExportProperty(Expression<Func<T, object>> propertyFilter)
174Expression<Func<T, object>> propertyFilter,
188public PartBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertyFilter)
193public PartBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertyFilter,
207public PartBuilder<T> ImportProperty(Expression<Func<T, object>> propertyFilter)
212public PartBuilder<T> ImportProperty(Expression<Func<T, object>> propertyFilter,
226public PartBuilder<T> ImportProperty<TContract>(Expression<Func<T, object>> propertyFilter)
231public 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)
51private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr)
55expr = (Expression<Func<T, object>>)expr.Reduce();
60private static Expression<Action<T>> Reduce(Expression<Action<T>> expr)
64expr = (Expression<Action<T>>)expr.Reduce();
77Expression<Func<T, object>> propertySelector,
101private static PropertyInfo SelectProperties(Expression<Func<T, object>> propertySelector)
122private static Expression<Func<T, object>> Reduce(Expression<Func<T, object>> expr)
126expr = (Expression<Func<T, object>>)expr.Reduce();
137public ConstructorExpressionAdapter(Expression<Func<ParameterImportConventionBuilder, T>> selectConstructor)
160private void ParseSelectConstructor(Expression<Func<ParameterImportConventionBuilder, T>> constructorSelector)
199private static Expression<Func<ParameterImportConventionBuilder, T>> Reduce(Expression<Func<ParameterImportConventionBuilder, T>> expr)
218public PartConventionBuilder<T> SelectConstructor(Expression<Func<ParameterImportConventionBuilder, T>> constructorSelector)
235public PartConventionBuilder<T> ExportProperty(Expression<Func<T, object>> propertySelector)
247Expression<Func<T, object>> propertySelector,
267public PartConventionBuilder<T> ExportProperty<TContract>(Expression<Func<T, object>> propertySelector)
280Expression<Func<T, object>> propertySelector,
298public PartConventionBuilder<T> ImportProperty(Expression<Func<T, object>> propertySelector)
310Expression<Func<T, object>> propertySelector,
329public PartConventionBuilder<T> ImportProperty<TContract>(Expression<Func<T, object>> propertySelector)
342Expression<Func<T, object>> propertySelector,
359public PartConventionBuilder<T> NotifyImportsSatisfied(Expression<Action<T>> methodSelector)
System.Composition.TypedParts (1)
System.Core (1)
System.Linq.Expressions (55)
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.Linq.Queryable (228)
System\Linq\Queryable.cs (224)
46public static IQueryable<TSource> Where<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
54new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(Where).Method,
59public static IQueryable<TSource> Where<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
67new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(Where).Method,
96public static IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector)
104new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, IQueryable<TResult>>(Select).Method,
109public static IQueryable<TResult> Select<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, TResult>> selector)
117new Func<IQueryable<TSource>, Expression<Func<TSource, int, TResult>>, IQueryable<TResult>>(Select).Method,
122public static IQueryable<TResult> SelectMany<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector)
130new Func<IQueryable<TSource>, Expression<Func<TSource, IEnumerable<TResult>>>, IQueryable<TResult>>(SelectMany).Method,
135public static IQueryable<TResult> SelectMany<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector)
143new Func<IQueryable<TSource>, Expression<Func<TSource, int, IEnumerable<TResult>>>, IQueryable<TResult>>(SelectMany).Method,
148public static IQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
157new Func<IQueryable<TSource>, Expression<Func<TSource, int, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>, IQueryable<TResult>>(SelectMany).Method,
162public static IQueryable<TResult> SelectMany<TSource, TCollection, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
171new Func<IQueryable<TSource>, Expression<Func<TSource, IEnumerable<TCollection>>>, Expression<Func<TSource, TCollection, TResult>>, IQueryable<TResult>>(SelectMany).Method,
182public 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)
193new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>, IQueryable<TResult>>(Join).Method,
198public 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)
209new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, TInner, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(Join).Method,
214public 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)
225new Func<IQueryable<TOuter>, IEnumerable<TInner>, Expression<Func<TOuter, TKey>>, Expression<Func<TInner, TKey>>, Expression<Func<TOuter, IEnumerable<TInner>, TResult>>, IQueryable<TResult>>(GroupJoin).Method,
230public 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)
241new 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,
253/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one
255/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>.
290/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one
292/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>.
319public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
327new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderBy).Method,
332public static IOrderedQueryable<TSource> OrderBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
340new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderBy).Method,
352/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one
354/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>.
389/// This method has at least one parameter of type <see cref="Expression{TDelegate}"/> whose type argument is one
391/// For these parameters, you can pass in a lambda expression and it will be compiled to an <see cref="Expression{TDelegate}"/>.
418public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
426new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(OrderByDescending).Method,
431public static IOrderedQueryable<TSource> OrderByDescending<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
439new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(OrderByDescending).Method,
444public static IOrderedQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
452new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(ThenBy).Method,
457public static IOrderedQueryable<TSource> ThenBy<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
465new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(ThenBy).Method,
470public static IOrderedQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
478new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IOrderedQueryable<TSource>>(ThenByDescending).Method,
483public static IOrderedQueryable<TSource> ThenByDescending<TSource, TKey>(this IOrderedQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TKey>? comparer)
491new Func<IOrderedQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>, IOrderedQueryable<TSource>>(ThenByDescending).Method,
526public static IQueryable<TSource> TakeWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
534new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(TakeWhile).Method,
539public static IQueryable<TSource> TakeWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
547new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(TakeWhile).Method,
564public static IQueryable<TSource> SkipWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
572new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, IQueryable<TSource>>(SkipWhile).Method,
577public static IQueryable<TSource> SkipWhile<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int, bool>> predicate)
585new Func<IQueryable<TSource>, Expression<Func<TSource, int, bool>>, IQueryable<TSource>>(SkipWhile).Method,
590public static IQueryable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
598new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<IGrouping<TKey, TSource>>>(GroupBy).Method,
603public static IQueryable<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector)
612new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IQueryable<IGrouping<TKey, TElement>>>(GroupBy).Method,
617public static IQueryable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
625new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<IGrouping<TKey, TSource>>>(GroupBy).Method,
630public 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)
639new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, IEqualityComparer<TKey>, IQueryable<IGrouping<TKey, TElement>>>(GroupBy).Method,
644public 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)
654new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IQueryable<TResult>>(GroupBy).Method,
659public static IQueryable<TResult> GroupBy<TSource, TKey, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TKey, IEnumerable<TSource>, TResult>> resultSelector)
668new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IQueryable<TResult>>(GroupBy).Method,
673public 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)
682new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, IEnumerable<TSource>, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(GroupBy).Method,
687public 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)
697new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>, Expression<Func<TKey, IEnumerable<TElement>, TResult>>, IEqualityComparer<TKey>, IQueryable<TResult>>(GroupBy).Method,
733public static IQueryable<TSource> DistinctBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
741new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(DistinctBy).Method,
754public static IQueryable<TSource> DistinctBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
762new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(DistinctBy).Method,
816public static IQueryable<TResult> Zip<TFirst, TSecond, TResult>(this IQueryable<TFirst> source1, IEnumerable<TSecond> source2, Expression<Func<TFirst, TSecond, TResult>> resultSelector)
825new Func<IQueryable<TFirst>, IEnumerable<TSecond>, Expression<Func<TFirst, TSecond, TResult>>, IQueryable<TResult>>(Zip).Method,
890public static IQueryable<TSource> UnionBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector)
899new Func<IQueryable<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(UnionBy).Method,
913public static IQueryable<TSource> UnionBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TSource> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
922new Func<IQueryable<TSource>, IEnumerable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(UnionBy).Method,
982public static IQueryable<TSource> IntersectBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector)
991new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(IntersectBy).Method,
1007public static IQueryable<TSource> IntersectBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1016new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(IntersectBy).Method,
1061public static IQueryable<TSource> ExceptBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector)
1070new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IQueryable<TSource>>(ExceptBy).Method,
1087public static IQueryable<TSource> ExceptBy<TSource, TKey>(this IQueryable<TSource> source1, IEnumerable<TKey> source2, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer)
1096new Func<IQueryable<TSource>, IEnumerable<TKey>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<TSource>>(ExceptBy).Method,
1116public static TSource First<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1124new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(First).Method,
1159public static TSource? FirstOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1167new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(FirstOrDefault).Method,
1179public static TSource FirstOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
1187new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(FirstOrDefault).Method,
1204public static TSource Last<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1212new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(Last).Method,
1247public static TSource? LastOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1255new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(LastOrDefault).Method,
1267public static TSource LastOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
1275new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(LastOrDefault).Method,
1293public static TSource Single<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1301new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource>(Single).Method,
1337public static TSource? SingleOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1345new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(SingleOrDefault).Method,
1358public static TSource SingleOrDefault<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate, TSource defaultValue)
1366new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource, TSource>(SingleOrDefault).Method,
1538public static bool Any<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1546new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, bool>(Any).Method,
1551public static bool All<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1559new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, bool>(All).Method,
1576public static int Count<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1584new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, int>(Count).Method,
1597public static IQueryable<KeyValuePair<TKey, int>> CountBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey>? comparer = null) where TKey : notnull
1605new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, int>>>(CountBy).Method,
1622public static long LongCount<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
1630new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, long>(LongCount).Method,
1667public static TResult? Min<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector)
1675new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Min).Method,
1688public static TSource? MinBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
1696new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MinBy).Method,
1711public static TSource? MinBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer)
1719new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MinBy).Method,
1757public static TResult? Max<TSource, TResult>(this IQueryable<TSource> source, Expression<Func<TSource, TResult>> selector)
1765new Func<IQueryable<TSource>, Expression<Func<TSource, TResult>>, TResult?>(Max).Method,
1778public static TSource? MaxBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
1786new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TSource?>(MaxBy).Method,
1801public static TSource? MaxBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IComparer<TSource>? comparer)
1809new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TSource>, TSource?>(MaxBy).Method,
1936public static int Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector)
1944new Func<IQueryable<TSource>, Expression<Func<TSource, int>>, int>(Sum).Method,
1949public static int? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector)
1957new Func<IQueryable<TSource>, Expression<Func<TSource, int?>>, int?>(Sum).Method,
1962public static long Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector)
1970new Func<IQueryable<TSource>, Expression<Func<TSource, long>>, long>(Sum).Method,
1975public static long? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector)
1983new Func<IQueryable<TSource>, Expression<Func<TSource, long?>>, long?>(Sum).Method,
1988public static float Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector)
1996new Func<IQueryable<TSource>, Expression<Func<TSource, float>>, float>(Sum).Method,
2001public static float? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector)
2009new Func<IQueryable<TSource>, Expression<Func<TSource, float?>>, float?>(Sum).Method,
2014public static double Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector)
2022new Func<IQueryable<TSource>, Expression<Func<TSource, double>>, double>(Sum).Method,
2027public static double? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector)
2035new Func<IQueryable<TSource>, Expression<Func<TSource, double?>>, double?>(Sum).Method,
2040public static decimal Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector)
2048new Func<IQueryable<TSource>, Expression<Func<TSource, decimal>>, decimal>(Sum).Method,
2053public static decimal? Sum<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector)
2061new Func<IQueryable<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Sum).Method,
2186public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int>> selector)
2194new Func<IQueryable<TSource>, Expression<Func<TSource, int>>, double>(Average).Method,
2199public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, int?>> selector)
2207new Func<IQueryable<TSource>, Expression<Func<TSource, int?>>, double?>(Average).Method,
2212public static float Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float>> selector)
2220new Func<IQueryable<TSource>, Expression<Func<TSource, float>>, float>(Average).Method,
2225public static float? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, float?>> selector)
2233new Func<IQueryable<TSource>, Expression<Func<TSource, float?>>, float?>(Average).Method,
2238public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long>> selector)
2246new Func<IQueryable<TSource>, Expression<Func<TSource, long>>, double>(Average).Method,
2251public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, long?>> selector)
2259new Func<IQueryable<TSource>, Expression<Func<TSource, long?>>, double?>(Average).Method,
2264public static double Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double>> selector)
2272new Func<IQueryable<TSource>, Expression<Func<TSource, double>>, double>(Average).Method,
2277public static double? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, double?>> selector)
2285new Func<IQueryable<TSource>, Expression<Func<TSource, double?>>, double?>(Average).Method,
2290public static decimal Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal>> selector)
2298new Func<IQueryable<TSource>, Expression<Func<TSource, decimal>>, decimal>(Average).Method,
2303public static decimal? Average<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, decimal?>> selector)
2311new Func<IQueryable<TSource>, Expression<Func<TSource, decimal?>>, decimal?>(Average).Method,
2316public static TSource Aggregate<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, TSource, TSource>> func)
2324new Func<IQueryable<TSource>, Expression<Func<TSource, TSource, TSource>>, TSource>(Aggregate).Method,
2329public static TAccumulate Aggregate<TSource, TAccumulate>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func)
2337new Func<IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, TAccumulate>(Aggregate).Method,
2342public static TResult Aggregate<TSource, TAccumulate, TResult>(this IQueryable<TSource> source, TAccumulate seed, Expression<Func<TAccumulate, TSource, TAccumulate>> func, Expression<Func<TAccumulate, TResult>> selector)
2351new Func<IQueryable<TSource>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, Expression<Func<TAccumulate, TResult>>, TResult>(Aggregate).Method,
2356public 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
2365new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, TAccumulate, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,
2370public 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
2380new Func<IQueryable<TSource>, Expression<Func<TSource, TKey>>, Expression<Func<TKey, TAccumulate>>, Expression<Func<TAccumulate, TSource, TAccumulate>>, IEqualityComparer<TKey>, IQueryable<KeyValuePair<TKey, TAccumulate>>>(AggregateBy).Method,