C# 클래스 Microsoft.Cci.MutableCodeModel.MethodBodyMappingMutator

Use this as a base class when you try to mutate the method body of method M1 in class C1 to be used as method body of method M2 in class C2. supporting the substitution of parameters as well as type parameters.
상속: Microsoft.Cci.MutableCodeModel.CodeMutatingVisitor
파일 보기 프로젝트 열기: visualmutator/visualmutator

공개 메소드들

메소드 설명
MethodBodyMappingMutator ( IMetadataHost host ) : Microsoft.Cci.MutableCodeModel

Use this as a base class when you try to mutate the method body of method M1 in class C1 to be used as method body of method M2 in class C2. Anticipating the substitution of parameters as well as type parameters, this mutator copies references but not definitions. If a reference is itself a definition, a new reference will be created.

Visit ( IGenericMethodParameterReference genericMethodParameterReference ) : IGenericMethodParameterReference

Visit a genericMethodParameterReference. Do not copy if it is a genericMethodParameter.

Visit ( IGenericTypeParameterReference genericTypeParameterReference ) : IGenericTypeParameterReference

Visit a genericTypeParameterReference. Do not copy if it is a generic type parameter.

Visit ( INamespaceTypeReference namespaceTypeReference ) : INamespaceTypeReference

Leaves namespace type references alone since they cannot involve type parameters of the target class or method.

Visit ( INestedTypeReference nestedTypeReference ) : INestedTypeReference

Copies specialized nested type references since their containing types may involve type parameters, but leaves other kinds of nested type references alone.

메소드 상세

MethodBodyMappingMutator() 공개 메소드

Use this as a base class when you try to mutate the method body of method M1 in class C1 to be used as method body of method M2 in class C2. Anticipating the substitution of parameters as well as type parameters, this mutator copies references but not definitions. If a reference is itself a definition, a new reference will be created.
public MethodBodyMappingMutator ( IMetadataHost host ) : Microsoft.Cci.MutableCodeModel
host IMetadataHost An object representing the application that is hosting this mutator. It is used to obtain access to some global /// objects and services such as the shared name table and the table for interning references.
리턴 Microsoft.Cci.MutableCodeModel

Visit() 공개 메소드

Visit a genericMethodParameterReference. Do not copy if it is a genericMethodParameter.
public Visit ( IGenericMethodParameterReference genericMethodParameterReference ) : IGenericMethodParameterReference
genericMethodParameterReference IGenericMethodParameterReference
리턴 IGenericMethodParameterReference

Visit() 공개 메소드

Visit a genericTypeParameterReference. Do not copy if it is a generic type parameter.
public Visit ( IGenericTypeParameterReference genericTypeParameterReference ) : IGenericTypeParameterReference
genericTypeParameterReference IGenericTypeParameterReference
리턴 IGenericTypeParameterReference

Visit() 공개 메소드

Leaves namespace type references alone since they cannot involve type parameters of the target class or method.
public Visit ( INamespaceTypeReference namespaceTypeReference ) : INamespaceTypeReference
namespaceTypeReference INamespaceTypeReference The namespace type reference.
리턴 INamespaceTypeReference

Visit() 공개 메소드

Copies specialized nested type references since their containing types may involve type parameters, but leaves other kinds of nested type references alone.
public Visit ( INestedTypeReference nestedTypeReference ) : INestedTypeReference
nestedTypeReference INestedTypeReference The nested type reference.
리턴 INestedTypeReference