Show / Hide Table of Contents

Class MethodCallBasedOperatorToQueryTreeConverter

Converter for expressions which use System.Linq.Expressions.MethodCallExpression for the operator.

Inheritance
System.Object
ToQueryTreeConverter
MethodCallBasedOperatorToQueryTreeConverter
Inherited Members
ToQueryTreeConverter.Convert(Expression)
ToQueryTreeConverter.CreateKnownOperator(QueryTree, Type)
ToQueryTreeConverter.VisitFromKnownOperator(Expression)
ToQueryTreeConverter.ConvertToMonadMember(Type, QueryTree)
Namespace: System.Linq.CompilerServices.Optimizers
Assembly: Nuqleon.Linq.CompilerServices.Optimizers.dll
Syntax
public abstract class MethodCallBasedOperatorToQueryTreeConverter : ToQueryTreeConverter

Constructors

MethodCallBasedOperatorToQueryTreeConverter()

Declaration
protected MethodCallBasedOperatorToQueryTreeConverter()

Properties

QueryExpressionFactory

Factory to create domain specific derived operators.

Declaration
protected abstract IQueryExpressionFactory QueryExpressionFactory { get; }
Property Value
Type Description
IQueryExpressionFactory

Methods

TryGetOperatorType(MethodInfo, out OperatorType)

Tries to get the operator from the method if an operator corresponds to the method.

Declaration
protected abstract bool TryGetOperatorType(MethodInfo method, out OperatorType operatorType)
Parameters
Type Name Description
System.Reflection.MethodInfo method

The method to look up.

OperatorType operatorType

The operator the method represents.

Returns
Type Description
System.Boolean

Whether matching of the method to an operator was successful.

VisitMethodCall(MethodCallExpression)

Visits method and returns a handle to a query tree if the current node is a known operator.

Declaration
protected override Expression VisitMethodCall(MethodCallExpression node)
Parameters
Type Name Description
System.Linq.Expressions.MethodCallExpression node

The node to visit.

Returns
Type Description
System.Linq.Expressions.Expression

The visited expression.

In This Article
Back to top Generated by DocFX