Class TypeSubstitutionQueryVisitor
Query expression visitor which substitutes types.
Inheritance
System.Object
TypeSubstitutionQueryVisitor
Inherited Members
Namespace: System.Linq.CompilerServices.Optimizers
Assembly: Nuqleon.Linq.CompilerServices.Optimizers.dll
Syntax
public class TypeSubstitutionQueryVisitor : QueryVisitorWithReflection
Constructors
TypeSubstitutionQueryVisitor(TypeSubstitutor)
Creates a new type substitution query expression visitor with the specified type substitutor.
Declaration
public TypeSubstitutionQueryVisitor(TypeSubstitutor typeSubstitutor)
Parameters
Type | Name | Description |
---|---|---|
TypeSubstitutor | typeSubstitutor | Type substitutor to map source types onto target types. |
Methods
VisitLambdaAbstractionBody(LambdaExpression)
Visits and substitutes types of an expression which is the body of a lambda abstraction.
Declaration
protected override LambdaExpression VisitLambdaAbstractionBody(LambdaExpression body)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.LambdaExpression | body | The expression to visit. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.LambdaExpression | Result of visiting the expression. |
Overrides
VisitType(Type)
Visits the type with a substitutor.
Declaration
protected override Type VisitType(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Type to visit. |
Returns
Type | Description |
---|---|
System.Type | Result of the visit. |