NuGet.QueryableUtility.IsQueryableMethod C# (CSharp) Method

IsQueryableMethod() public static method

public static IsQueryableMethod ( Expression expression, string method ) : bool
expression System.Linq.Expressions.Expression
method string
return bool
        public static bool IsQueryableMethod(Expression expression, string method)
        {
            return _methods.Where(m => m.Name == method).Contains(GetQueryableMethod(expression));
        }

Usage Example

Exemplo n.º 1
0
 protected override Expression VisitMethodCall(MethodCallExpression node)
 {
     if (_methodsToExclude.Any(method => QueryableUtility.IsQueryableMethod(node, method)))
     {
         return(Visit(node.Arguments[0]));
     }
     return(base.VisitMethodCall(node));
 }
All Usage Examples Of NuGet.QueryableUtility::IsQueryableMethod