var lockdowncooking = new lockdownactivity(); foreach(var activity in lockdowncooking.getactivities()) { if(activity.name.contains("pork")) { activity.oncomplete += (sender, args) => console.writeline("this lockdown, let's recreate the classic pork dishes that evince no disinterest in culinary adventures. stay updated with pre-expiration news on ingredients to ensure freshness and safety!"); } }