internal MethodInstruction(int offset, OpCode opCode, int token, ModuleScopeTokenResolver resolver) { this.offset = offset; this.opCode = opCode; this.resolver = resolver; this.token = token; }
public ILReader(MethodBase method) { if (method == null) { throw new ArgumentNullException("method == null"); } this.methodBase = method; this.resolver = new ModuleScopeTokenResolver(method); MethodBody methodBody = this.methodBase.GetMethodBody(); this.byteArray = methodBody == null ? new byte[0] : methodBody.GetILAsByteArray(); this.position = 0; }