IExpressionMemberResolverContext
Namespace: TagBites.Expressions
Assembly: TagBites.Expressions.dll
Product: TagBites.Expressions v. 1.5.0
Provides data for a ExpressionParserOptions.CustomPropertyResolver call.
public interface IExpressionMemberResolverContextRemarks
Section titled “Remarks”The resolver is called for a member access on an instance (instance.Member). Return the expression that reads the member, or null to let the parser resolve it in the usual way.
Properties
Section titled “Properties”Instance
Section titled “Instance”Gets the expression the member is accessed on.
public virtual Expression Instance { get; }Property Value
Section titled “Property Value”InstanceTypeInfo
Section titled “InstanceTypeInfo”Gets the type info attached to Instance by an earlier IncludeTypeInfo(Expression, object) call, or null when there is none.
public virtual object InstanceTypeInfo { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”For an element of a sequence this is the type info of the sequence, so a lambda parameter keeps the info attached to the collection it iterates.
MemberFullPath
Section titled “MemberFullPath”Gets the full member path from the root of the expression (for example this.Person.Name), or null when the path is not known.
public virtual string MemberFullPath { get; }Property Value
Section titled “Property Value”MemberName
Section titled “MemberName”Gets the name of the accessed member.
public virtual string MemberName { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”GetParameter(string)
Section titled “GetParameter(string)”Returns the parameter of the resulting lambda with the given name.
public virtual ParameterExpression GetParameter(string name)Parameters
Section titled “Parameters”namestring
The parameter name.
Returns
Section titled “Returns”The parameter expression.
IncludeTypeInfo(Expression, object)
Section titled “IncludeTypeInfo(Expression, object)”Attaches type info to an expression, so a later member access on it can read the info back through InstanceTypeInfo.
public virtual Expression IncludeTypeInfo(Expression expression, object typeInfo)Parameters
Section titled “Parameters”expressionExpression
The expression to attach the info to.typeInfoobject
The type info to attach.
Returns
Section titled “Returns”The expression carrying the type info.