title: I want to get the single value from a arraylist in a string
body: <pre><code>public ArrayList ChequeACpayee(string Payee, DateTime Date)
  {
      ArrayList arr = new ArrayList();
      try
      {
          con.Open();
          SqlCommand cmd = new SqlCommand("ViewChequeforAcPayee", con);
          cmd.CommandType = CommandType.StoredProcedure;
          SqlParameter p = new SqlParameter();
          p = cmd.Parameters.AddWithValue("@PayeeName", Payee);
          p = cmd.Parameters.AddWithValue("@Date", Date);
          SqlDataReader dr = cmd.ExecuteReader();
          while (dr.Read())
          {
              ChequeInfo infoCheque = new ChequeInfo();
  
              infoCheque.AcPayee = dr["AcPayee"].ToString();
  
              arr.Add(infoCheque);
          }
  
          dr.Close();
          con.Close();
      }
      catch (Exception e)
      {
      }
      return arr;
  }
  ArrayList ArrAcpayee = ChequeAcPayee.ChequeACpayee (DDLPayee.SelectedItem.ToString(), BDPSelectDate.SelectedDate);
  </code></pre>
  
  <p>How do I get the single value from this arraylist? The value must be a converted to a string.</p>