Translate

Friday, 24 April 2015

Join in array element

   protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write(string.Join(" ", Method()));
    }


static string[] Method()
    {
        string[] array = new string[3];
        array[0] = "THANK";
        array[1] = "YOU";
        array[2] = "Pabitra";
       // string[] array = {"THANK","YOU","Pabitra"};
       
        return array;
    }
  

No comments:

Post a Comment