C# 클래스 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.
상속: System.Linq.Expressions.ExpressionVisitor
파일 보기 프로젝트 열기: TargetProcess/Target-Process-Plugins

공개 메소드들

메소드 설명
CtorTypeChanger ( Type baseType, Type derivedType ) : System

보호된 메소드들

메소드 설명
VisitMemberInit ( MemberInitExpression expression ) : Expression
VisitNew ( NewExpression node ) : Expression

비공개 메소드들

메소드 설명
CreateNewConstructor ( NewExpression node, ConstructorInfo constructor ) : Expression
FindApropriateCtor ( ConstructorInfo constructor, Type type ) : ConstructorInfo
ReplaceConstructor ( NewExpression node, Type type ) : Expression

메소드 상세

CtorTypeChanger() 공개 메소드

public CtorTypeChanger ( Type baseType, Type derivedType ) : System
baseType System.Type
derivedType System.Type
리턴 System

VisitMemberInit() 보호된 메소드

protected VisitMemberInit ( MemberInitExpression expression ) : Expression
expression System.Linq.Expressions.MemberInitExpression
리턴 System.Linq.Expressions.Expression

VisitNew() 보호된 메소드

protected VisitNew ( NewExpression node ) : Expression
node System.Linq.Expressions.NewExpression
리턴 System.Linq.Expressions.Expression