Wrong output from dictionary in C# : <p>Why do I get output of my namespace.object when printing from dictionary?</p>

<p>This is my data object.</p>

<pre><code>namespace MoleCalculator
{
    public class elementDO
    {
        public int AtomicNumber { get; set; }
        public string Symbol { get; set; }
        public string Name { get; set; }
        public decimal AtomicWeight { get; set; }
    }
}
</code></pre>

<p>This is the class that has my dictionary</p>

<pre><code>namespace MoleCalculator
{
public class elementDictionary
{
    public Dictionary&lt;int, elementDO&gt; periodic_Table = new Dictionary&lt;int, elementDO&gt;()
    {
        {1,new elementDO{AtomicNumber = 1,Symbol = "H",Name = "Hydrogen", AtomicWeight = 1.007825M}},
</code></pre>

<p>This is what drives it</p>

<pre><code>var elements = new elementDictionary().periodic_Table;
        Console.WriteLine(elements[1]);
</code></pre>
