title: Convert ListView to Line separated String Array and vice versa
body: <p>I am trying to take all items in my ListView and write each one into a new line inside a string Array (or something similar). This is so i can pass these values to a string property inside an object that is then saved to a SQL Database (Varchar(max)).</p>
  
  <p>What i have tried sofar</p>
  
  <pre><code>public string ConvertToString(ListView l)
          {
              ArrayList list = new ArrayList();
  
              foreach (string item in l.Items)
              {
                  list.Add(item);
              }
  
              return list.ToString();
          }
  </code></pre>
  
  <p>but im obviously missing the newline split which i am struggling with.
  The current code only saves "System.Collections.ArrayList" into the database.</p>
  
  <p>I also did alot of googling and keep coming across "string[]" but thats no good as i have to predefine the length, which i dont know as it keeps changing when items get added to the ListView.</p>
  
  <p>I also need a reverse method when reading the values from the database to put each line back into the ListView.</p>
  
  <p>Any help is much appreciated.</p>