string[] strOrgParams = (string[]) organizition.GetOrgName(c_txtDeptSelected.Text );

解决方案 »

  1.   

    you can use the array as the following ,i complied it and run correctly.private void Form1_Load(object sender, System.EventArgs e)
    {
    Orgnizition aa=new Orgnizition();
    string[] temp=new string[3]; temp=aa.GetDeptNames("1");
    for(int i=0;i<temp.GetLength(0);i++)
    {
    textBox1.Text+=temp[i]; 
    }
                 
    }
      

  2.   

    string[] strOrgParams =organizition.GetOrgName(c_txtDeptSelected.Text );
      

  3.   

    sorry,
    string[] strOrgParams =organizition.GetOrgName(c_txtDeptSelected.Text );
    是对的,我成员函数写错了