Connection String C#
问题 public string ConnectionString = string.Empty; In the line above, if the connection string is assigned as string.empty, then how will the connection string get its value? I dont understand what this means exactly. The code am reading through contains the following after the above statement: public DataSet GetData(SqlCommand cmd) { SqlConnection conn = new SqlConnection(this.ConnectionString); DataSet ds = new DataSet(); try { cmd.Connection = conn; SqlDataAdapter ad = new SqlDataAdapter(cmd);