public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        UseParams(1, 2, 3); 
    }
    public static void UseParams(params int[] list)
    {
        for (int i = 0; i < list.Length; i++)
        {
            Console.WriteLine(list[i]);
        }
        Console.WriteLine();
    } 
}
大家看看我的这个程序可有什么问题?怎么我调试什么结果也不显示呢。谢谢

解决方案 »

  1.   

    public partial class _Default : System.Web.UI.Page 

        protected void Page_Load(object sender, EventArgs e) 
        { 
            UseParams(1, 2, 3); 
        } 
        public static void UseParams(params int[] list) 
        { 
            for (int i = 0; i < list.Length; i++) 
            { 
                Response.WriteLine(list[i]); 
            } 
        } 

      

  2.   

    想用cosole看的话 就建控制台项目哦