How to return contents of a List<char>
<pre><code> public List&lt;char&gt; Columns(String input)
    {
        char[] temp = input.ToCharArray();
        List&lt;char&gt; columns = new List&lt;char&gt;(input.Length);
        for (int i = 0; i &lt; input.Length; i++)
        {
            if (other.Contains(temp[i]))
            {
                columns.Add((char)(i+1));
            }
        }
        return columns;
    }
</code></pre>

<p>My goal here was to have this method return a List. However, when I went to output the contents in another method I got 'System.Collections.Generic.List[char]</p>

<pre><code>Console.WriteLine(ex.Columns(line));
</code></pre>

<p>That was my attempt to output it.</p>
