There is no one-to-one correspondence between Python types and CLR types. &nbsp;In fact, there really can&#39;t be (at least in the default case) because their respective types work totally differently.<div><br></div><div>You&#39;ll need to use the ObjectOperations API to access your Python methods:</div>
<div>engine.Operations.GetMember(object, &quot;methodname&quot;) will return a delegate to the method.</div><div>engine.Operations.InvokeMember(object, &quot;methodname&quot;, arg1, arg2, ...) will execute a method.<br><br>
<div class="gmail_quote">On Fri, Jan 16, 2009 at 1:58 AM, Stefan Glimberg <span dir="ltr">&lt;<a href="mailto:stefanglimberg@gmail.com">stefanglimberg@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I am creating a Silverlight application using C# and underlying python<br>
classes. In the C# code, I would like to access information about any<br>
methods defined in the python code. The python classes inherit from my<br>
own C# classes, but the only type information availible is from the C#<br>
class, not the python class.<br>
I get a python class inheriting my own &#39;Component&#39; and its type like this:<br>
<br>
Compoenent c = ScriptEngine.GetVariable&lt;Component&gt;(Scope, mInstanceName);<br>
Type t = c.GetType();<br>
<br>
Calling fx. t.GetMembers() only returns members from the C# Component<br>
calss, nothing from the python class.<br>
Is there any way to access the methods defined in the python class also?<br>
<br>
- Glimberg<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</blockquote></div><br></div>