LinqBuilderExtensions DynamicQuery T  Method (IEnumerable T , Query, String, Boolean)EasyQuery WinForms API Reference
Filters a sequence of values based on a predicate specified by Query.

Namespace: Korzh.EasyQuery
Assembly: Korzh.EasyQuery.NET40 (in Korzh.EasyQuery.NET40.dll) Version: 3.7.1.37
Syntax

public static IEnumerable<T> DynamicQuery<T>(
	this IEnumerable<T> source,
	Query query,
	string orderByProperty,
	bool descending = false
)

Parameters

source
Type: OnlineSystem.Collections.Generic IEnumerable T 
The source - some IEnumerable object.
query
Type: Korzh.EasyQuery Query
The query - a Query object.
orderByProperty
Type: OnlineSystem String
The name of the property to order by the result list.
descending (Optional)
Type: OnlineSystem Boolean
if set to true then we use descending order.
Type Parameters

T
Any type

Return Value

Type: OnlineIEnumerable T 
A IEnumerable<T> that contains elements from the input sequence that satisfy the conditions defined in query.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIEnumerable T . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also