/// <summary> /// builds an instruction graph /// </summary> /// <param name="method"></param> public InstructionGraph(Method method) { if (method == null) throw new ArgumentNullException("method"); this.method = method; this.vertexAndEdgeProvider = new InstructionVertexAndEdgeProvider(); this.BuildGraphFromMethod(method); }
/// <summary> /// builds an instruction graph /// </summary> /// <param name="method"></param> public InstructionGraph(Method method) { if (method == null) { throw new ArgumentNullException("method"); } this.method = method; this.vertexAndEdgeProvider = new InstructionVertexAndEdgeProvider(); this.BuildGraphFromMethod(method); }