コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }