[IronPython] System.RuntimeType

2005-05-13 Thread Chris Anderson
I'm trying to get a System.RuntimeType in a simple Python script... today if i use the "type" keyword, i get a Python type object... I really want the equivalent of C#'s typeof operator. Specifically I want to be able to access the GetProperties(), GetMethods(), and GetEvents() on the type object..

RE: [IronPython] System.RuntimeType

2005-05-13 Thread John Gossman
element.GetType().GetProperties()   element.GetType().Assembly     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris AndersonSent: Friday, May 13, 2005 2:06 PMTo: [email protected]: [IronPython] System.RuntimeType I'm trying to get a Syst

Re: [IronPython] System.RuntimeType

2005-05-13 Thread Chris Anderson
How would I do it without an instance available... I basically just want the runtime type for a specific type, not based on an instance. On 5/13/05, John Gossman <[EMAIL PROTECTED]> wrote: element.GetType().GetProperties()   element.GetType().Assembly  _

RE: [IronPython] System.RuntimeType

2005-05-13 Thread John Gossman
Sorry,   Ops.object2type(Button)   Ops.object2type(Button).Assembly   etc.   Should have realized what you meant. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris AndersonSent: Friday, May 13, 2005 2:23 PMTo: [email protected]: Re: [Iron