Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Will the manager be alerted?
using System;
using System.Collections.Generic;
using System.Linq;
class Review
public int Score { get; set; }
class Program
static void Main(string[] args)
var reviews = new List<Review>();
if (reviews.All(r => r.Score < 0))
throw new Exception("Alert manager");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.