Can a C# lambda expression ever return void?
I have the following method, and I want to know if there is anything that can go in place default(void) below because there is a compiler error that says that void is not valid here: private void applyDefaultsIfNecessary(ApplicationConfiguration configuration) { var defaults = new Dictionary<Predicate<ApplicationConfiguration>, Action<ApplicationConfiguration>>() { // { rule, action } - if rule is true, execute action { (c) => c.ConnectionString == null , (c) => c.ConnectionString = "foo" }, { (c) => c.OutputExcelFilePath == null, (c) => c.ConnectionString = "bar" }, { (c) => c.OutputDirectory