| | 523 | static public bool All<T>(IEnumerable<T> items) { |
| | 524 | foreach (T item in items) |
| | 525 | if (!IsTrue(item)) |
| | 526 | return false; |
| | 527 | return true; |
| | 528 | } |
| | 529 | |
| | 530 | static public bool All(IEnumerable items) { |
| | 531 | foreach (object item in items) |
| | 532 | if (!IsTrue(item)) |
| | 533 | return false; |
| | 534 | return true; |
| | 535 | } |
| | 536 | |
| | 537 | static public bool Any<T>(IEnumerable<T> items) { |
| | 538 | foreach (T item in items) |
| | 539 | if (IsTrue(item)) |
| | 540 | return true; |
| | 541 | return false; |
| | 542 | } |
| | 543 | |
| | 544 | static public bool Any(IEnumerable items) { |
| | 545 | foreach (object item in items) |
| | 546 | if (IsTrue(item)) |
| | 547 | return true; |
| | 548 | return false; |
| | 549 | } |
| | 550 | |