将代码行从 C# 转换为 IronPython

发布于 2024-09-18 07:01:20 字数 142 浏览 2 评论 0原文

我需要将这行代码从 asp.net c# 页面转换为 asp.net IronPython,会怎样?

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

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);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤芳又自赏 2024-09-25 07:01:20

可能是Button1.RaisePostBackEvent(None)

Python 作为一种动态语言,不需要指定类型,因为它没有强制转换的概念。 Python 中的 null 拼写为 None

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文