[IronPython] CodeDom Method without class
Curt Hagenlocher
curt at hagenlocher.org
Fri Jul 4 04:12:39 CEST 2008
This isn't surprising, because the model exposed by the CodeDom is extremely
close to the underlying CLR -- which doesn't support methods without
classes.
On Thu, Jul 3, 2008 at 4:46 PM, Michael Stephens <falcon at uwyo.edu> wrote:
> I'm trying to declare a method without a class but the PythonProvider .. or
> .net keeps throwing.. Does anyone know any clever workarounds?
>
> CodeMemberMethod meth=new CodeMemberMethod();
> meth.Name = "Script";
> meth.Attributes = MemberAttributes.Public;
>
> provider.??? everything throws!
>
> Michael Stephens
>
> Electrical Engineering Graduate Student
> University of Wyoming
> falcon at uwyo.edu or 89iroc at gmail.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080703/c85e3b06/attachment.html>
More information about the Ironpython-users
mailing list