开发者

translating line of code from C# to IronPython

开发者 https://www.devze.com 2023-01-15 22:33 出处:网络
I need to convert this line of code from an asp.net c# page to开发者_开发问答 asp.net IronPython, how would it be?

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

精彩评论

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