System::Collections::Generic::List::Exists 方法

List::Exists method

检查列表中是否存在符合特定谓词的元素。

bool System::Collections::Generic::List<T>::Exists(System::Predicate<T> match)
参数类型描述
matchSystem::Predicate<T>用于检查元素的 Predicate

ReturnValue

如果找到匹配的元素则为 true,否则为 false。

另见