Re: [IronPython] Getting Python class of dynamic object from C#

2010-09-28 Thread Dino Viehland
users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Andreas Schlapsi Sent: Tuesday, September 28, 2010 3:12 PM To: users@lists.ironpython.com Subject: [IronPython] Getting Python class of dynamic object from C# Hi! I'd like to get the class name (including the name

[IronPython] Getting Python class of dynamic object from C#

2010-09-28 Thread Andreas Schlapsi
Hi! I'd like to get the class name (including the name of the module) of a dynamic object (IronPython object) in C#. I tried to get the class instance with code similar to that: dynamic myobject = item; dynamic itemClass = myobject.__class__; Unfortunately this doesn't work. I could get the clas