Re: [IronPython] dynamic types

2006-08-16 Thread Martin Maly
@lists.ironpython.com Subject: [IronPython] dynamic types   Hi,   I have a C# class with the following design   public interface IDynamicProperty { /// ... }   public class DynamicPropertiesContainer {    IDynamicProperty GetDynamicProperty

Re: [IronPython] dynamic types

2006-08-16 Thread Jonathan Jacobs
Aviad Rozenhek wrote: > what I would like is to expose the "DynamicProperties" of my class as > "actual" properties in IP, which is logical since IP is dynamic. I'm not sure if there is a way you can implement __getattr__ in your C# class (and have IronPython Do The Right Thing,) but you could

[IronPython] dynamic types

2006-08-16 Thread Aviad Rozenhek
Hi,   I have a C# class with the following design   public interface IDynamicProperty { /// ... }   public class DynamicPropertiesContainer {    IDynamicProperty GetDynamicProperty (string name) }   and I have embedded IP as an internal scripting langauge.   what  I would like is to expose the "Dyn