示例#1
0
        public static ControlFlowGraph Create(MethodDefinition method)
        {
            if (method == null)
            {
                throw new ArgumentNullException("method");
            }
            if (!method.HasBody)
            {
                throw new ArgumentException();
            }

            var builder = new ControlFlowGraphBuilder(method);

            return(builder.CreateGraph());
        }
示例#2
0
		public static ControlFlowGraph Create (MethodDefinition method)
		{
			if (method == null)
				throw new ArgumentNullException ("method");
			if (!method.HasBody)
				throw new ArgumentException ();

			var builder = new ControlFlowGraphBuilder (method);
			return builder.CreateGraph ();
		}