title: Access Ironpython dictionary from C#
body: <p>I have dictionary defined in Ironpython script and I want to access this dictionary from my C# 
  code. Can someone provide example code to achieve my requirement.  </p>
  
  <p>Sorry earlier I did not mention my problem statement with code. </p>
  
  <pre><code>import clr
  clr.AddReference("System.Core")
  import System
  clr.ImportExtensions(System.Linq)
  from System.Collections.Generic import Dictionary,List
  
  def check(self):
      dict1 = Dictionary[str,str]
      dict1["a"] = "aa"
      dict2 = Dictionary[str,str]
      dict2["b"] = "bb"
      self[0] = dict1
  #   self.Add(dict1)
      return self
  </code></pre>
  
  <p>C#</p>
  
  <pre><code>var runtime = Python.CreateRuntime();
  dynamic test = runtime.UseFile("Test.py");
  
  
  var myDictList = new List&lt;Dictionary&lt;string, string&gt;&gt;();
  var myDL = new List&lt;Dictionary&lt;string, string&gt;&gt;();
  myDL = test.check(myDictList);
  </code></pre>
  
  <p>My objective is to operate(Add, remove from list) on List of Dictionary in python and send it back to C# where I can use it further.
  What I want is either create a list of dictionary in python or in C# and use it in both( python and C#) the places.
  How can I do so.</p>