[Ironpython-users] How can IronPython access a public static value defined in C#?

Doug Blank doug.blank at gmail.com
Sun Jun 19 20:32:51 CEST 2011


On Sun, Jun 19, 2011 at 3:06 AM, Abubakar <abubakarm at gmail.com> wrote:
> try reading the following, maybe that'll explain:
> http://stackoverflow.com/questions/44834/can-someone-explain-all-in-python
> ..ab

Well, my question was about how to do that in C#.

I can indeed do this:

public static class Myro {
 public readonly static List __all__ = new List() {"robot"};
 public static Robot robot {
    get {}
    set {}
 }
}

but then "robot" is the *only* item imported. I would like add robot to
the list of items imported.

-Doug


More information about the Ironpython-users mailing list