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 <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED] or [EMAIL PROTECTED]
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to