I have a list of delegates:
public List<Func<bool>> Requirements { get; set; };
Now when I try to initialize it with an existing method, it works perfectly:
Requirements = new List<Func<bool>>() { obj.IsValid };
But how can I create a new method in this initialization and pass it to the list? Pseudocode:
Requirements = new List<Func<bool>>() { bool() {return true} };