在 c# 7.0 中,您可以使用丢弃。使用丢弃和简单地不分配变量有什么区别?
public List<string> DoSomething(List<string> aList)
{
//does something and return the same list
}
_ = DoSomething(myList);
DoSomething(myList);
Run Code Online (Sandbox Code Playgroud)
有什么区别吗?
我已经正确构建了我的电子应用程序,并且正在尝试将其上传到Apple商店(适用于Mac,而不是Iphone)。它是通过 Transporter 应用程序上传的(https://apps.apple.com/us/app/transporter/id1450874784?mt=12)。但我收到以下警告。
Could not find a MudhornDescriberCapabilities service provider
当我查找警告消息时,我找不到任何有用的信息。
我的代码中没有任何 MudhornDescripterCapability,几周前也没有出现此错误。
该应用程序是一个在 Electron 上运行的 React App。Apple 仍可以审核此更新,并且之前已通过此警告。