C# Class Tp.Core.Expressions.Visitors.CtorTypeChanger

Replaces constructions of one type with constructions of another one. Supports generic types. Matches properties by name in case types has properties with the same name.
Inheritance: System.Linq.Expressions.ExpressionVisitor
Afficher le fichier Open project: TargetProcess/Target-Process-Plugins

Méthodes publiques

Méthode Description
CtorTypeChanger ( Type baseType, Type derivedType ) : System

Méthodes protégées

Méthode Description
VisitMemberInit ( MemberInitExpression expression ) : Expression
VisitNew ( NewExpression node ) : Expression

Private Methods

Méthode Description
CreateNewConstructor ( NewExpression node, ConstructorInfo constructor ) : Expression
FindApropriateCtor ( ConstructorInfo constructor, Type type ) : ConstructorInfo
ReplaceConstructor ( NewExpression node, Type type ) : Expression

Method Details

CtorTypeChanger() public méthode

public CtorTypeChanger ( Type baseType, Type derivedType ) : System
baseType System.Type
derivedType System.Type
Résultat System

VisitMemberInit() protected méthode

protected VisitMemberInit ( MemberInitExpression expression ) : Expression
expression System.Linq.Expressions.MemberInitExpression
Résultat System.Linq.Expressions.Expression

VisitNew() protected méthode

protected VisitNew ( NewExpression node ) : Expression
node System.Linq.Expressions.NewExpression
Résultat System.Linq.Expressions.Expression