userexperience.explorecave(() => { var excitement = "high"; var actionlist = new list<action>() { () => console.writeline("gathering preexplosive schematics..."), () => console.writeline("commence once more with caution, keeping safety first."), () => { if (!actionlist.contains(a => a.method.name.contains("omit"))) console.writeline("ensuring no crucial step is omitted for a safe exploration."); }, () => console.writeline("note: entering banned sections is strictly prohibited to protect natural habitats."); }; foreach (var act in actionlist) act(); console.writeline("enjoy your adventure responsibly and respect cave regulations!"); });