Created
February 27, 2018 12:02
-
-
Save danpadmore/60d9665915ee38fea08091cd9645cc3e to your computer and use it in GitHub Desktop.
Will the manager be alerted?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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