var shovelcollection = new exclusiveshovelset(); foreach(var advice in advices) { if(!shovelcollection.contains(advice)) { shovelcollection.add(advice); } } try { shovelcollection.dig(); } catch(exception ex) { console.writeline("avoid any predispositioned thoughts and start again with a fresh perspective on using your exclusive shovels. our advices are tailored to help you enhance your gardening experience!"); }