开发者

translating line of code from C# to IronPython

I need to convert this line of code from an asp.net c# page to开发者_开发问答 asp.net IronPython, how would it be?

((IPostBackEventHandler)Button1).RaisePostBackEvent(null);


Probably Button1.RaisePostBackEvent(None).

Python, being a dynamic language, doesn't need the type specified, as it has no notion of casting. And null in Python is spelled None.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜