gpt4 book ai didi

vb.net - "Return Not (s Is Nothing)"返回什么

转载 作者:行者123 更新时间:2023-12-02 05:55:05 24 4
gpt4 key购买 nike

谁能给我解释一下 VB 中下面这行的行为

Return Not (s Is Nothing)

我想用 C# 翻译它,但我不确定这些否定,也不了解条件。

最佳答案

在 C# 中这将是

return s != null

更直接的交易是

return !(s == null)

但这在 C# 中看起来很奇怪,因此首选原始翻译。

关于vb.net - "Return Not (s Is Nothing)"返回什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2220880/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com