C# 클래스 Hiro.Compilers.ServiceHashEmitter

Rrepesnts a class that adds a GetServiceHashCode method to a target type.
파일 보기 프로젝트 열기: philiplaureano/Hiro 1 사용 예제들

공개 메소드들

메소드 설명
AddGetServiceHashMethodTo ( Mono.Cecil.TypeDefinition targetType, bool shouldBeVisible ) : Mono.Cecil.MethodDefinition

Adds a GetServiceHashCode method to a target type.

비공개 메소드들

메소드 설명
AddLocals ( Mono.Cecil.ModuleDefinition module, Mono body ) : Mono.Cecil.Cil.VariableDefinition

Adds the necessary local variables to the GetServiceHashCode method.

DefineOptions ( Mono.Cecil.TypeDefinition targetType, bool shouldBeVisible, MethodBuilderOptions options ) : void

Sets the default method options for the GetServiceHashCode method.

EmitGetServiceNameHashCode ( Mono.Cecil.Cil.ILProcessor il, MethodReference getHashCodeMethod, Mono.Cecil.Cil.VariableDefinition hashVariable ) : void

Emits the IL that calculates a hash code from a given service name.

EmitGetServiceTypeHashCode ( Mono.Cecil.ModuleDefinition module, Mono body, Mono.Cecil.Cil.ILProcessor il, MethodReference getHashCodeMethod ) : Mono.Cecil.Cil.VariableDefinition

Emits the IL that calculates a hash code from a given service type.

메소드 상세

AddGetServiceHashMethodTo() 공개 메소드

Adds a GetServiceHashCode method to a target type.
public AddGetServiceHashMethodTo ( Mono.Cecil.TypeDefinition targetType, bool shouldBeVisible ) : Mono.Cecil.MethodDefinition
targetType Mono.Cecil.TypeDefinition The target type.
shouldBeVisible bool A boolean flag that indicates whether or not the method should be public.
리턴 Mono.Cecil.MethodDefinition