System::Collections::Generic::List::TrueForAll 方法

List::TrueForAll method

确定集合中的每个元素是否匹配指定谓词定义的条件。

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

ReturnValue

如果每个元素都匹配条件则为 true,否则为 false。

另见