Method | Description | |
---|---|---|
AddGetServiceHashMethodTo ( Mono.Cecil.TypeDefinition targetType, bool shouldBeVisible ) : Mono.Cecil.MethodDefinition |
Adds a GetServiceHashCode method to a target type.
|
Method | Description | |
---|---|---|
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, |
Sets the default method options for the GetServiceHashCode method.
|
|
EmitGetServiceNameHashCode ( Mono.Cecil.Cil.ILProcessor il, |
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, |
Emits the IL that calculates a hash code from a given service 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. |
return | Mono.Cecil.MethodDefinition |