C# Class PropertyTranslator.PropertyVisitor

Expression visitor resolving and performing registered property translations.
Inheritance: System.Linq.Expressions.ExpressionVisitor
Show file Open project: peschuster/PropertyTranslator

Public Methods

Method Description
PropertyVisitor ( ) : System

Initializes a new instance of the PropertyVisitor class with default TranslationMap.

PropertyVisitor ( TranslationMap map ) : System

Initializes a new instance of the PropertyVisitor class.

Protected Methods

Method Description
VisitMember ( MemberExpression node ) : Expression

Visits the member.

VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression

Visits the parameter.

Private Methods

Method Description
EnsureTypeInitialized ( Type type ) : void

Ensures that the static fields on the reflected type are initialized.

IsBuildOnInterface ( MemberExpression node ) : bool

Determines whether the query was build towards an interface.

VisitCompiledExpression ( CompiledExpression compiledExpression, Expression expression ) : Expression

Method Details

PropertyVisitor() public method

Initializes a new instance of the PropertyVisitor class with default TranslationMap.
public PropertyVisitor ( ) : System
return System

PropertyVisitor() public method

Initializes a new instance of the PropertyVisitor class.
public PropertyVisitor ( TranslationMap map ) : System
map TranslationMap The translation map.
return System

VisitMember() protected method

Visits the member.
protected VisitMember ( MemberExpression node ) : Expression
node System.Linq.Expressions.MemberExpression The node.
return System.Linq.Expressions.Expression

VisitParameter() protected method

Visits the parameter.
protected VisitParameter ( System.Linq.Expressions.ParameterExpression p ) : Expression
p System.Linq.Expressions.ParameterExpression The parameter expression.
return System.Linq.Expressions.Expression