Sorry, please disregard this. I forgot that it was Task.Current, not
CurrentTask. My bad.
2008/7/9 TraumaPony <[EMAIL PROTECTED]>:
> Hi, I'm having trouble accessing static properties in my code. Here's what
> I have:
>
> import clr
>
> clr.AddReference("System.Threading")
>
> def CurrentTask():
> from System.Threading.Tasks import Task
> return Task.CurrentTask
>
> def Pause(timeout):
> CurrentTask().Wait(timeout)
>
> However, when I call CurrentTask(), I get an error:
>
> An unhandled exception of type 'System.MissingMemberException' occurred in
> Unknown Module.
>
> Additional information: 'type' object has no attribute 'CurrentTask'
>
> What am I doing wrong?
>
--
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
This message has been encrypted with ROT-26. Any unauthorised decryption
will result in prosecution to the full extent of the law.
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com