Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查列表条目是否不是例如 0.0?
我只知道如何检查它是否是这样的 0.0:
MyList.Where(a => a.Equals(0.0))
但是如果不是,如何检查呢?
要检查列表是否包含数字:if (myList.Contains(0.0)) ...
if (myList.Contains(0.0)) ...
要检查列表是否不包含数字:if (!myList.Contains(0.0)) ...
if (!myList.Contains(0.0)) ...