using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main() {
var list = new List<int> { 3, 5, 1, 7, 6, 8 };
bool allPositive = list.All(x => x > 0);
if (allPositive) {
Console.WriteLine("All values are positive");
}
}
}
/*
run:
All values are positive
*/