Access Ironpython dictionary from C#
问题 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. Sorry earlier I did not mention my problem statement with 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 #