C# Class Patchwork.Engine.Utility.Hacks

Contains extension methods that are regarded as hacks circumventing some of Cecil's limitations. Strong points of failure should the version change.
显示文件 Open project: GregRos/Patchwork

Public Methods

Method Description
CreateInstruction ( Mono.Cecil.Cil.OpCode opCode, object operand ) : Instruction

Private Methods

Method Description
ClearExtraResolvers ( this resolver ) : void
ForceClearCache ( this resolver ) : void
InitializeTokenProviderCache ( Mono.Cecil.ModuleDefinition module ) : IMetadataTokenProvider>.IDictionary
LookupTokenExtended ( this module, MetadataToken token ) : IMetadataTokenProvider

This method returns the member with the specified metadata token in the given module. It supports more TokenTypes than the standard Cecil method.

RegisterSpecialResolveFailureHandler ( this resolver, AssemblyResolveEventHandler handler ) : void

Creates a system of multiple assembly resolvers. The latest resolver is fired first. The list can be cleared.

Method Details

CreateInstruction() public static method

public static CreateInstruction ( Mono.Cecil.Cil.OpCode opCode, object operand ) : Instruction
opCode Mono.Cecil.Cil.OpCode
operand object
return Mono.Cecil.Cil.Instruction