How to retrieve the full dictionary in C#
<p>I have created a dictionary in Class A and would like to return the entire list (Key, Value) in class B. Are there any suggestions on how can I do this? I have tried a number of things from the internet but nothing seems to be working. I am trying to write a method in class A to retrieve the entire dictionary.</p>

<pre class="lang-cs prettyprint-override"><code>public class_A
{
  public static Dictionary&lt;string, string&gt; Dict_1 = new Dictionary();
  public add_dict(string name, string add)
  {
     Dict_1.Add(name, add);
  }

  public dict return_dictionary()
  {
    return (Dict_1); // I want to have a proper code to return this dictionary.
  }
}
</code></pre>
