C# Class NuGet.QueryableUtility

ファイルを表示 Open project: grendello/nuget Class Usage Examples

Public Methods

Method Description
FindGenericType ( Type definition, Type type ) : Type
IsOrderingMethod ( Expression expression ) : bool
IsQueryableMethod ( Expression expression, string method ) : bool
ReplaceQueryableExpression ( IQueryable query, Expression expression ) : Expression

Private Methods

Method Description
GetQueryableMethod ( Expression expression ) : MethodInfo

Method Details

FindGenericType() public static method

public static FindGenericType ( Type definition, Type type ) : Type
definition System.Type
type System.Type
return System.Type

IsOrderingMethod() public static method

public static IsOrderingMethod ( Expression expression ) : bool
expression System.Linq.Expressions.Expression
return bool

IsQueryableMethod() public static method

public static IsQueryableMethod ( Expression expression, string method ) : bool
expression System.Linq.Expressions.Expression
method string
return bool

ReplaceQueryableExpression() public static method

public static ReplaceQueryableExpression ( IQueryable query, Expression expression ) : Expression
query IQueryable
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression