Turning a List<Class> object ToString()
<p>I created a List using a class</p>

<pre><code>public static List&lt;Holding_Class&gt; Holding { get; set; }
</code></pre>

<p>Here is my class</p>

<pre><code> class Holding_Class
{
    public string Key { get; set; }
    public string RealID { get; set; }
    public string URL { get; set; }
}
</code></pre>

<p>When I do a for loop on the class i try to reference key and a string and pass it into a void and all I get is System.Object as the string text.  What Can I do to get Key's real text.</p>

<pre><code>            for (int i = 0; i &lt; Holding.Count; i++)
            {
               Process_HTML(htmlResultString,Holding[i].Key.ToString();

            }
</code></pre>

<p>"System.Object[]" is the result from Holding[i].Key.ToString().  When i'm in debug I can see the real value.</p>

<p>here is Process_HTML</p>

<pre><code> public static void Process_HTML(string HTML, string key)
    {
//do mysql work
Console.WriteLine(key);
}
</code></pre>

<p>It's nothing more then that</p>

<p>Here is the population</p>

<pre><code> foreach (DataRow realDtRow in Real.Rows)
            {
                Holding_Class Hold = new Holding_Class
                {
                    Key = dtRow.ItemArray.ToString(),
                    Real = realvinDtRow.ItemArray[0].ToString(),
                    URL = realvinDtRow.ItemArray[0].ToString()
                };
                Holding.Add(Hold);
            }
</code></pre>
