It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




已关闭10年。




在C#中,> 0和> = 1之间哪个更快,更好?

最佳答案

两者都不;如果更快或更佳,它们都应该编译为同一件事。

更重要的是,大多数程序员可能会发现> 0更具可读性,并且可读性比这样的子微优化更重要。

关于c# - 在C#中,> 0和> = 1之间哪个更快,更好? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3661545/

10-11 23:02
查看更多