简体   繁体   中英

List<>.Exists() doesn't exist in WP7?

Unless I'm missing something here Exists() doesn't exist in WP7? If this is true does someone know of an equivalent?

By looking at the MSDN it seems it doesn't exist. You can simulate it with:

 myList.Any(p => p == something);

.Any().Contains()应该正常工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM