System::Collections::Generic::List::TrueForAll method

List::TrueForAll method

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

bool System::Collections::Generic::List<T>::TrueForAll(System::Predicate<T> match)
ParameterType描述
matchSystem::Predicate<T>Predicate 用于检查元素。

ReturnValue

如果每个元素都符合条件,则返回 true;否则返回 false。

另见