public Instruction[] ReadMethod(MethodInfo method) { m_Reader = new ILReader(method); IEnumerator <ILInstruction> enumerator = m_Reader.GetEnumerator(); InstructionVisitor visitor = new InstructionVisitor(); for (; enumerator.MoveNext();) { ILInstruction instruction = enumerator.Current; instruction.Accept(visitor); } return(visitor.Instructions.ToArray()); }